package mineplex.game.clans.items.commands; import org.bukkit.entity.Player; import mineplex.core.command.CommandBase; import mineplex.core.common.Rank; import mineplex.game.clans.items.GearManager; public class GearCommand extends CommandBase { private GearManager _gearManager; public GearCommand(GearManager plugin) { super(plugin, Rank.ADMIN, new Rank[]{Rank.JNR_DEV}, "gear", "custom-gear"); _gearManager = plugin; } @Override public void Execute(Player caller, String[] args) { if (args == null || args.length == 0) { _gearManager.openShop(caller); } else { caller.updateInventory(); } } }