Factions/src/org/mcteam/factions/commands/FCommandClaim.java

26 lines
388 B
Java
Raw Normal View History

2011-04-08 15:51:07 +02:00
package org.mcteam.factions.commands;
public class FCommandClaim extends FBaseCommand {
public FCommandClaim() {
aliases.add("claim");
helpDescription = "Claim the land where you are standing";
}
@Override
public void perform() {
if ( ! assertHasFaction()) {
return;
}
if( isLocked() ) {
sendLockMessage();
return;
}
me.attemptClaim(true);
}
}