Saber-Factions/src/main/java/com/massivecraft/factions/cmd/CmdWarunclaimall.java
2015-01-21 19:25:45 -06:00

44 lines
1.2 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;
import com.massivecraft.factions.zcore.util.TL;
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;
}
@Override
public void perform() {
Board.getInstance().unclaimAll(Factions.getInstance().getWarZone().getId());
msg(TL.COMMAND_WARUNCLAIMALL_SUCCESS);
if (Conf.logLandUnclaims) {
P.p.log(TL.COMMAND_WARUNCLAIMALL_LOG.format(fme.getName()));
}
}
@Override
public TL getUsageTranslation() {
return TL.COMMAND_WARUNCLAIMALL_DESCRIPTION;
}
}