Leaders can now not be kicked by their officers. Improved leader command.

This commit is contained in:
Olof Larsson
2011-12-23 01:13:55 +01:00
parent 3dc70e82d9
commit 81d24ecbc4
3 changed files with 49 additions and 17 deletions

View File

@@ -40,6 +40,12 @@ public class CmdKick extends FCommand
msg("<i>You might want to: %s", p.cmdBase.cmdLeave.getUseageTemplate(false));
return;
}
if (you.getRole() == Rel.LEADER && !(this.senderIsConsole || fme.hasAdminMode()))
{
msg("<b>The leader can not be kicked.");
return;
}
if ( ! Conf.canLeaveWithNegativePower && you.getPower() < 0)
{