2011-07-18 22:06:02 +02:00
|
|
|
package com.massivecraft.factions.commands;
|
2011-05-29 16:28:29 -05:00
|
|
|
|
|
|
|
import org.bukkit.command.CommandSender;
|
2011-07-18 22:06:02 +02:00
|
|
|
|
|
|
|
import com.massivecraft.factions.Board;
|
|
|
|
import com.massivecraft.factions.Faction;
|
2011-10-08 22:03:44 +02:00
|
|
|
import com.massivecraft.factions.P;
|
2011-05-29 16:28:29 -05:00
|
|
|
|
2011-10-08 23:22:02 +02:00
|
|
|
public class FCommandWarunclaimall extends FCommand {
|
2011-05-29 16:28:29 -05:00
|
|
|
|
|
|
|
public FCommandWarunclaimall() {
|
|
|
|
aliases.add("warunclaimall");
|
|
|
|
aliases.add("wardeclaimall");
|
|
|
|
|
|
|
|
helpDescription = "Unclaim all warzone land";
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean hasPermission(CommandSender sender) {
|
2011-10-08 22:03:44 +02:00
|
|
|
return P.hasPermManageWarZone(sender);
|
2011-05-29 16:28:29 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void perform() {
|
|
|
|
|
|
|
|
if( isLocked() ) {
|
|
|
|
sendLockMessage();
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
Board.unclaimAll(Faction.getWarZone().getId());
|
|
|
|
sendMessage("You unclaimed ALL war zone land.");
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|