package net.knarcraft.minigames.gui; import net.knarcraft.minigames.MiniGames; import org.bukkit.entity.Player; /** * A GUI used in the dropper arena */ public class DropperGUI extends ArenaGUI { /** * Instantiates a new dropper gui * * @param player
The player the GUI is created for
*/ public DropperGUI(Player player) { super(9, "Dropper", MiniGames.getInstance().getDropperArenaPlayerRegistry()); if (MiniGames.getInstance().getPlayerVisibilityManager().isHidingPlayers(player)) { setItem(0, getTogglePlayersItemEnabled()); } else { setItem(0, getTogglePlayersItemDisabled()); } setItem(2, getLeaveItem()); setAnyClickAction(0, getTogglePlayersAction()); setAnyClickAction(2, getLeaveAction()); } }