- 
                Notifications
    
You must be signed in to change notification settings  - Fork 83
 
API tutorial
        Daniel Saukel edited this page Nov 2, 2021 
        ·
        13 revisions
      
    DungeonsXL has, as of v0.18, an API module that will allow for programming stable hooks.
The DungeonsXL API can be built from source or downloaded from the Maven repository.
    <dependencies>
        <dependency>
            <groupId>de.erethon.dungeonsxl</groupId>
            <artifactId>dungeonsxl-api</artifactId>
            <version>0.18-PRE-02</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>
    <repositories>
        <repository>
            <id>dre-repo</id>
            <url>https://erethon.de/repo</url>
        </repository>
    </repositories>
Alternatively, binaries can be downloaded manually here.
The main class of the API is the DungeonsAPI singleton.
DungeonsAPI dxl;
@Override
public void onEnable() {
    if (!Bukkit.getPluginManager().isPluginEnabled("DungeonsXL")) return;
    dxl = (DungeonsAPI) Bukkit.getPluginManager().getPlugin("DungeonsXL");
}
Wiki: © 2015-2021 Daniel Saukel and contributors, licensed under CC BY-SA (only unless otherwise stated)
- General information
 - General setup and usage
 - Dungeon setup
- Signs
 - Game rules
 - Linked dungeon configuration
 - Dungeon world configuration
 - Details
 - Examples (WIP)
- Simple dungeon
 - Bedwars TODO
 - PVP arena TODO
 - Mob arena TODO
 - Tutorial TODO
 
 
 - Data structure guide
 - FAQ