API - Snykkk/Dungeons GitHub Wiki

API


Events

  • PlayerJoinArenaEvent
  • PlayerQuitArenaEvent
  • ArenaStartEvent
  • ArenaEndEvent
  • ArenaWinEvent
  • ArenaCloseEvent
  • ArenaNextStageEvent

Arena

Arena arena = ArenaManager.getArenaManager().getArena(String id)

Arena arena = ArenaManager.getArenaManager().getArena(Player p)

Player stats

SPlayer sp = SP.get(player)

  • sp#getWins()
  • sp#getCloses()
  • sp#getScores()
  • sp#getPlayed()

Remove the custom displayname and the custom lore whitelist

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);
	}

If you have any questions, contact me on the support channel. Thank you!

⚠️ **GitHub.com Fallback** ⚠️