2011-07-18 22:06:02 +02:00
|
|
|
package com.massivecraft.factions.commands;
|
2011-05-29 23:28:29 +02:00
|
|
|
|
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-05-29 23:28:29 +02:00
|
|
|
|
2011-10-09 20:10:19 +02:00
|
|
|
public class CmdWarunclaimall extends FCommand
|
2011-10-09 18:35:39 +02:00
|
|
|
{
|
2011-05-29 23:28:29 +02:00
|
|
|
|
2011-10-09 20:10:19 +02:00
|
|
|
public CmdWarunclaimall()
|
2011-10-09 18:35:39 +02:00
|
|
|
{
|
2011-10-09 20:10:19 +02:00
|
|
|
this.aliases.add("warunclaimall");
|
|
|
|
this.aliases.add("wardeclaimall");
|
2011-05-29 23:28:29 +02:00
|
|
|
|
2011-10-09 18:35:39 +02:00
|
|
|
//this.requiredArgs.add("");
|
2011-10-09 20:10:19 +02:00
|
|
|
//this.optionalArgs.put("", "");
|
2011-10-09 18:35:39 +02:00
|
|
|
|
2011-10-09 20:10:19 +02:00
|
|
|
this.permission = Permission.MANAGE_WAR_ZONE.node;
|
2011-10-09 18:35:39 +02:00
|
|
|
|
|
|
|
senderMustBePlayer = false;
|
|
|
|
senderMustBeMember = false;
|
|
|
|
senderMustBeModerator = false;
|
|
|
|
senderMustBeAdmin = false;
|
|
|
|
|
2011-10-09 20:10:19 +02:00
|
|
|
this.setHelpShort("unclaim all warzone land");
|
2011-05-29 23:28:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2011-10-09 18:35:39 +02:00
|
|
|
public void perform()
|
|
|
|
{
|
2011-10-09 20:10:19 +02:00
|
|
|
|
2011-10-09 18:35:39 +02:00
|
|
|
if( isLocked() )
|
|
|
|
{
|
2011-05-29 23:28:29 +02:00
|
|
|
sendLockMessage();
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2011-10-09 20:10:19 +02:00
|
|
|
Board.unclaimAll(Factions.i.getWarZone().getId());
|
|
|
|
sendMessageParsed("<i>You unclaimed ALL war zone land.");
|
2011-05-29 23:28:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|