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

39 lines
614 B
Java
Raw Normal View History

2011-07-18 22:06:02 +02:00
package com.massivecraft.factions.commands;
import com.massivecraft.factions.struct.Permission;
2011-10-09 20:10:19 +02:00
public class CmdClaim extends FCommand
{
2011-10-09 20:10:19 +02:00
public CmdClaim()
{
super();
this.aliases.add("claim");
//this.requiredArgs.add("");
//this.optionalArgs.put("", "");
this.permission = Permission.COMMAND_CLAIM.node;
senderMustBePlayer = true;
senderMustBeMember = true;
senderMustBeModerator = false;
senderMustBeAdmin = false;
aliases.add("claim");
}
@Override
public void perform()
{
if( isLocked() )
{
sendLockMessage();
return;
}
fme.attemptClaim(true);
}
}