Disable unstuck command for neutral faction players.

This commit is contained in:
MobiusDev
2019-02-28 14:03:21 +00:00
parent 2b9c79367e
commit 5224d41be9
11 changed files with 66 additions and 0 deletions

View File

@@ -57,6 +57,12 @@ public class Unstuck implements IUserCommandHandler
return false;
}
if (Config.FACTION_SYSTEM_ENABLED && !activeChar.isGood() && !activeChar.isEvil())
{
activeChar.sendMessage("You cannot use this function while you are neutral.");
return false;
}
final int unstuckTimer = (activeChar.getAccessLevel().isGm() ? 1000 : Config.UNSTUCK_INTERVAL * 1000);
if (activeChar.isInOlympiadMode())