Factions/src/com/massivecraft/factions/commands/FCommandClaim.java

39 lines
624 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;
public class FCommandClaim extends FCommand
{
public FCommandClaim()
{
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);
}
}