Saber-Factions/src/com/massivecraft/factions/cmd/CmdSafeunclaimall.java

37 lines
825 B
Java
Raw Normal View History

2011-10-09 21:57:43 +02:00
package com.massivecraft.factions.cmd;
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 20:10:19 +02:00
public class CmdSafeunclaimall extends FCommand
2011-10-09 18:35:39 +02:00
{
2011-10-09 20:10:19 +02:00
public CmdSafeunclaimall()
2011-10-09 18:35:39 +02:00
{
this.aliases.add("safeunclaimall");
this.aliases.add("safedeclaimall");
2011-10-09 18:35:39 +02:00
//this.requiredArgs.add("");
2011-10-15 19:46:44 +02:00
//this.optionalArgs.put("radius", "0");
2011-10-09 18:35:39 +02:00
this.permission = Permission.MANAGE_SAFE_ZONE.node;
2011-10-09 21:57:43 +02:00
this.disableOnLock = true;
2011-10-09 18:35:39 +02:00
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()
{
Board.unclaimAll(Factions.i.getSafeZone().getId());
2011-10-10 13:40:24 +02:00
msg("<i>You unclaimed ALL safe zone land.");
}
}