package com.massivecraft.factions.cmd; import com.massivecraft.factions.FactionsPlugin; import com.massivecraft.factions.struct.Permission; import com.massivecraft.factions.zcore.fupgrades.FUpgradeFrame; import com.massivecraft.factions.zcore.util.TL; public class CmdUpgrades extends FCommand { /** * @author Illyria Team */ public CmdUpgrades() { super(); this.aliases.addAll(Aliases.upgrades); this.requirements = new CommandRequirements.Builder(Permission.UPGRADES) .playerOnly() .memberOnly() .build(); } @Override public void perform(CommandContext context) { if (!FactionsPlugin.getInstance().getConfig().getBoolean("fupgrades.Enabled")) { context.fPlayer.msg(TL.COMMAND_UPGRADES_DISABLED); return; } new FUpgradeFrame(context.faction).buildGUI(context.fPlayer); } @Override public TL getUsageTranslation() { return TL.COMMAND_UPGRADES_DESCRIPTION; } }