use of com.massivecraft.massivecore.event.EventMassiveCoreBoardEnsure in project MassiveCore by MassiveCraft.
the class BoardUtil method updateEnsure.
public static void updateEnsure() {
EventMassiveCoreBoardEnsure event = new EventMassiveCoreBoardEnsure();
event.run();
for (Player player : getPlayers().values()) {
if (event.isEnsureBoardEnabled()) {
ensureBoard(player, event.isEnsureBoardStrict());
}
if (event.isEnsureTeamEnabled()) {
for (Scoreboard board : getBoards()) {
ensureTeam(board, player, event.isEnsureTeamStrict());
}
}
}
}
Aggregations