36 lines
785 B
Java
36 lines
785 B
Java
package com.massivecraft.factions.cmd;
|
|
|
|
import com.massivecraft.factions.struct.Permission;
|
|
import com.massivecraft.factions.zcore.util.TL;
|
|
|
|
public class CmdLeave extends FCommand {
|
|
|
|
public CmdLeave() {
|
|
super();
|
|
this.aliases.add("leave");
|
|
|
|
//this.requiredArgs.add("");
|
|
//this.optionalArgs.put("", "");
|
|
|
|
this.permission = Permission.LEAVE.node;
|
|
this.disableOnLock = true;
|
|
|
|
senderMustBePlayer = true;
|
|
senderMustBeMember = true;
|
|
senderMustBeModerator = false;
|
|
senderMustBeColeader = false;
|
|
senderMustBeAdmin = false;
|
|
}
|
|
|
|
@Override
|
|
public void perform() {
|
|
fme.leave(true);
|
|
}
|
|
|
|
@Override
|
|
public TL getUsageTranslation() {
|
|
return TL.LEAVE_DESCRIPTION;
|
|
}
|
|
|
|
}
|