Events

DungeonMMO has multiple events you can use:

DungeonClearRoomEvent

@EventHandler
public void onClear(DungeonClearRoomEvent e) {
    Team t = e.getTeam();
    int clearedRooms = e.getClearedRooms();
    int totalRooms = e.getTotalRooms();
}

DungeonPlayerLeaveEvent

@EventHandler
public void onLeave(DungeonPlayerLeaveEvent e) {
    Player p = e.getPlayer();
    DungeonLeavingCause cause = e.getDungeonLeavingCause();
}

PlayerKillBossEvent

@EventHandler
public void onKillBoss(PlayerKillBossEvent e) {
    Player p = e.getPlayer();
    LivingEntity boss = e.getBossEntity();
}

Last updated