Factions/src/com/massivecraft/factions/cmd/CmdClaim.java

36 lines
704 B
Java
Raw Normal View History

2011-10-09 21:57:43 +02:00
package com.massivecraft.factions.cmd;
2011-10-22 16:00:24 +02:00
import com.massivecraft.factions.Faction;
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("");
2011-10-22 16:00:24 +02:00
this.optionalArgs.put("faction", "your");
2011-10-09 21:57:43 +02:00
this.permission = Permission.CLAIM.node;
this.disableOnLock = true;
senderMustBePlayer = true;
senderMustBeMember = false;
2011-10-23 17:55:53 +02:00
senderMustBeOfficer = false;
senderMustBeLeader = false;
aliases.add("claim");
}
@Override
public void perform()
{
2011-10-22 16:00:24 +02:00
Faction forFaction = this.argAsFaction(0, myFaction);
fme.attemptClaim(forFaction, me.getLocation(), true);
}
}