Factions3/src/com/massivecraft/factions/cmd/CmdFactionsLeave.java
2013-04-24 08:39:26 +02:00

25 lines
519 B
Java

package com.massivecraft.factions.cmd;
import com.massivecraft.factions.Perm;
import com.massivecraft.factions.Rel;
import com.massivecraft.factions.cmd.req.ReqRoleIsAtLeast;
import com.massivecraft.mcore.cmd.req.ReqHasPerm;
public class CmdFactionsLeave extends FCommand {
public CmdFactionsLeave()
{
this.addAliases("leave");
this.addRequirements(ReqHasPerm.get(Perm.LEAVE.node));
this.addRequirements(ReqRoleIsAtLeast.get(Rel.RECRUIT));
}
@Override
public void perform()
{
fme.leave();
}
}