36 lines
705 B
Java
36 lines
705 B
Java
package com.massivecraft.factions.cmd;
|
|
|
|
import com.massivecraft.factions.Faction;
|
|
import com.massivecraft.factions.struct.Permission;
|
|
|
|
public class CmdClaim extends FCommand
|
|
{
|
|
|
|
public CmdClaim()
|
|
{
|
|
super();
|
|
this.aliases.add("claim");
|
|
|
|
//this.requiredArgs.add("");
|
|
this.optionalArgs.put("faction", "your");
|
|
|
|
this.permission = Permission.CLAIM.node;
|
|
this.disableOnLock = true;
|
|
|
|
senderMustBePlayer = true;
|
|
senderMustBeMember = false;
|
|
senderMustBeModerator = false;
|
|
senderMustBeAdmin = false;
|
|
|
|
aliases.add("claim");
|
|
}
|
|
|
|
@Override
|
|
public void perform()
|
|
{
|
|
Faction forFaction = this.argAsFaction(0, myFaction);
|
|
fme.attemptClaim(forFaction, me.getLocation(), true);
|
|
}
|
|
|
|
}
|