mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2025-02-17 21:02:12 +01:00
Page:
API tutorial
Pages
API tutorial
Administrator commands
Bedwars
Changelog
Contributions
Custom items
Data Structure Guide
Dungeon NPCs
Dungeon configuration
Dungeon items
DungeonSign ActionBar
DungeonSign Bed
DungeonSign Block
DungeonSign BossShop
DungeonSign Checkpoint
DungeonSign Classes
DungeonSign Command
DungeonSign Door
DungeonSign DungeonChest
DungeonSign End
DungeonSign Flag
DungeonSign Hologram
DungeonSign Interact
DungeonSign Leave
DungeonSign Lives
DungeonSign Lobby
DungeonSign MSG
DungeonSign Note
DungeonSign Place
DungeonSign Protection
DungeonSign Ready
DungeonSign ResourcePack
DungeonSign RewardChest
DungeonSign Script
DungeonSign SoundMessage
DungeonSign Start
DungeonSign Teleport
DungeonSign Title
DungeonSign Trigger
Dungeonkonfiguration
Einweisung
FAQ
Floor configuration
Game Goal
Game Initializer
Game rules
Getting started
Global structures
Grundlegende Informationen
Home
Legacy support
Multi group setups
Permissions
Plugin integration
Requirements
Schilder
Scripts
Signs legacy
Signs
Simple dungeon
Translations
13
API tutorial
Daniel Saukel edited this page 2021-11-02 03:21:16 +01:00
Table of Contents
DungeonsXL has, as of v0.18, an API module that will allow for programming stable hooks.
How to get the API
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.
Hooking into DXL
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");
}
Home
Administrator's guide
- 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
Developer's guide
Wiki: © 2015-2021 Daniel Saukel and contributors, licensed under CC BY-SA (only unless otherwise stated)