Search in sources :

Example 1 with EventMassiveCoreBoardEnsure

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());
            }
        }
    }
}
Also used : Player(org.bukkit.entity.Player) Scoreboard(org.bukkit.scoreboard.Scoreboard) EventMassiveCoreBoardEnsure(com.massivecraft.massivecore.event.EventMassiveCoreBoardEnsure)

Aggregations

EventMassiveCoreBoardEnsure (com.massivecraft.massivecore.event.EventMassiveCoreBoardEnsure)1 Player (org.bukkit.entity.Player)1 Scoreboard (org.bukkit.scoreboard.Scoreboard)1