ee52016a87
Also included: -Heavily optimized loading process -Optimizations for various commands.
40 lines
1.1 KiB
Java
40 lines
1.1 KiB
Java
package com.massivecraft.factions.cmd;
|
|
|
|
import com.massivecraft.factions.Board;
|
|
import com.massivecraft.factions.Conf;
|
|
import com.massivecraft.factions.Factions;
|
|
import com.massivecraft.factions.P;
|
|
import com.massivecraft.factions.struct.Permission;
|
|
|
|
public class CmdWarunclaimall extends FCommand {
|
|
|
|
public CmdWarunclaimall() {
|
|
this.aliases.add("warunclaimall");
|
|
this.aliases.add("wardeclaimall");
|
|
|
|
//this.requiredArgs.add("");
|
|
//this.optionalArgs.put("", "");
|
|
|
|
this.permission = Permission.MANAGE_WAR_ZONE.node;
|
|
this.disableOnLock = true;
|
|
|
|
senderMustBePlayer = false;
|
|
senderMustBeMember = false;
|
|
senderMustBeModerator = false;
|
|
senderMustBeAdmin = false;
|
|
|
|
this.setHelpShort("unclaim all warzone land");
|
|
}
|
|
|
|
@Override
|
|
public void perform() {
|
|
Board.getInstance().unclaimAll(Factions.getInstance().getWarZone().getId());
|
|
msg("<i>You unclaimed ALL war zone land.");
|
|
|
|
if (Conf.logLandUnclaims) {
|
|
P.p.log(fme.getName() + " unclaimed all war zones.");
|
|
}
|
|
}
|
|
|
|
}
|