Saber-Factions/src/com/massivecraft/factions/commands/CmdLeave.java
Olof Larsson 3cdd5764d3 derp
2011-10-09 20:10:19 +02:00

36 lines
581 B
Java

package com.massivecraft.factions.commands;
import com.massivecraft.factions.struct.Permission;
public class CmdLeave extends FCommand {
public CmdLeave()
{
super();
this.aliases.add("leave");
//this.requiredArgs.add("");
//this.optionalArgs.put("", "");
this.permission = Permission.COMMAND_LEAVE.node;
senderMustBePlayer = true;
senderMustBeMember = true;
senderMustBeModerator = false;
senderMustBeAdmin = false;
}
@Override
public void perform()
{
if ( isLocked() )
{
sendLockMessage();
return;
}
fme.leave(true);
}
}