API - Snykkk/Dungeons GitHub Wiki
- PlayerJoinArenaEvent
- PlayerQuitArenaEvent
- ArenaStartEvent
- ArenaEndEvent
- ArenaWinEvent
- ArenaCloseEvent
- ArenaNextStageEvent
Arena arena = ArenaManager.getArenaManager().getArena(String id)
Arena arena = ArenaManager.getArenaManager().getArena(Player p)
SPlayer sp = SP.get(player)
sp#getWins()
sp#getCloses()
sp#getScores()
sp#getPlayed()
Example:
@EventHandler
public void onArenaEnd(ArenaEndEvent event) {
Arena arena = event.getArena();
List<String> displayname = new LinkedList<>();
displayname.add("Display name 1");
displayname.add("This item");
displayname.add("Dont appear in Dungeon Vault");
displayname.add("Display name bla bla");
DungeonSystem.getInstance().getDungeonVaultAPI().setDisplaynameWhitelist(arena, displayname);
List<String> lores = new LinkedList<>();
lores.add("lore white list 1");
lores.add("lore 2");
lores.add("lore bla bla");
DungeonSystem.getInstance().getDungeonVaultAPI().setLoreWhitelist(arena, lores);
}