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