package com.massivecraft.factions.commands; import org.bukkit.command.CommandSender; import com.massivecraft.factions.Board; import com.massivecraft.factions.Faction; import com.massivecraft.factions.P; public class FCommandSafeunclaimall extends FBaseCommand { public FCommandSafeunclaimall() { aliases.add("safeunclaimall"); aliases.add("safedeclaimall"); helpDescription = "Unclaim all safezone land"; } @Override public boolean hasPermission(CommandSender sender) { return P.hasPermManageSafeZone(sender); } @Override public void perform() { if( isLocked() ) { sendLockMessage(); return; } Board.unclaimAll(Faction.getSafeZone().getId()); sendMessage("You unclaimed ALL safe zone land."); } }