DISCLAIMER |
---|
The API update will only be available in Mythic Dungeons 1.3.0+! |
Dependency Setup
Maven
Put the following in your pom.xml within their respective sections.
Repository
<repository>
<id>aestrus-releases</id>
<name>Aestrus's Repository</name>
<url>https://maven.aestrus.io/releases</url>
</repository>
Dependency
<dependency>
<groupId>net.playavalon</groupId>
<artifactId>MythicDungeons</artifactId>
<version>1.3.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
Note: The scope must be provided for the dependency.
Gradle
Coming Soon
Accessing API Methods
Utilizing methods built in MythicDungeons is a fairly straightforward process. The simplest approach is to create a static method in your root class (where onEnable()
and onDisable()
are), and get the MythicDungeonsService.
public static MythicDungeonsService mythicDungeonsAPI() {
return Bukkit.getServer().getServicesManager().load(MythicDungeonsService.class);
}
Example Usage
if (MyPlugin.mythicDungeonsAPI().isPlayerInDungeon(player) {
// Do something
}
Javadocs
The following link will take you to our Javadocs where you will get more information about our methods and events: https://docs.mythicdungeons.aestrus.io