Saber-Factions/src/com/bukkit/mcteam/factions/commands/FCommandLeave.java
2011-03-23 17:39:56 +01:00

27 lines
420 B
Java

package com.bukkit.mcteam.factions.commands;
import org.bukkit.command.CommandSender;
public class FCommandLeave extends FBaseCommand {
public FCommandLeave() {
aliases.add("leave");
helpDescription = "Leave your faction";
}
@Override
public boolean hasPermission(CommandSender sender) {
return true;
}
public void perform() {
if ( ! assertHasFaction()) {
return;
}
me.leave();
}
}