Search in sources :

Example 1 with PlayerInfoManager

use of fr.rosstail.nodewar.datahandlers.PlayerInfoManager in project Nodewar by Rosstail.

the class Nodewar method onDisable.

public void onDisable() {
    WorldGuardInteractions.stopTimer();
    if (getCustomConfig().getBoolean("general.use-calendar")) {
        CalendarManager.getCalendarManager().stopCalenderSchedule();
    }
    if (DynmapHandler.getDynmapHandler() != null) {
        DynmapHandler.getDynmapHandler().disable();
    }
    PlayerInfoManager playerInfoManager = PlayerInfoManager.getPlayerInfoManager();
    playerInfoManager.stopTimer();
    playerInfoManager.getPlayerInfoMap().forEach((player, playerInfo) -> {
        playerInfo.updateAll(false);
    });
}
Also used : PlayerInfoManager(fr.rosstail.nodewar.datahandlers.PlayerInfoManager)

Aggregations

PlayerInfoManager (fr.rosstail.nodewar.datahandlers.PlayerInfoManager)1