Saber-Factions/src/com/massivecraft/factions/commands/FCommandSafeunclaimall.java

42 lines
886 B
Java
Raw Normal View History

2011-07-18 22:06:02 +02:00
package com.massivecraft.factions.commands;
2011-07-18 22:06:02 +02:00
import com.massivecraft.factions.Board;
2011-10-09 18:35:39 +02:00
import com.massivecraft.factions.Factions;
import com.massivecraft.factions.struct.Permission;
2011-10-09 18:35:39 +02:00
public class FCommandSafeunclaimall extends FCommand
{
2011-10-09 18:35:39 +02:00
public FCommandSafeunclaimall()
{
this.aliases.add("safeunclaimall");
this.aliases.add("safedeclaimall");
2011-10-09 18:35:39 +02:00
//this.requiredArgs.add("");
this.optionalArgs.put("radius", "0");
this.permission = Permission.MANAGE_SAFE_ZONE.node;
senderMustBePlayer = false;
senderMustBeMember = false;
senderMustBeModerator = false;
senderMustBeAdmin = false;
this.setHelpShort("Unclaim all safezone land");
}
@Override
2011-10-09 18:35:39 +02:00
public void perform()
{
if( isLocked() )
{
sendLockMessage();
return;
}
2011-10-09 18:35:39 +02:00
Board.unclaimAll(Factions.i.getSafeZone().getId());
sendMessageParsed("<i>You unclaimed ALL safe zone land.");
}
}