Disable unstuck command for neutral faction players.
This commit is contained in:
@@ -47,6 +47,12 @@ public class Unstuck implements IUserCommandHandler
|
|||||||
return false;
|
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);
|
final int unstuckTimer = (activeChar.getAccessLevel().isGm() ? 1000 : Config.UNSTUCK_INTERVAL * 1000);
|
||||||
|
|
||||||
if (activeChar.isInOlympiadMode())
|
if (activeChar.isInOlympiadMode())
|
||||||
|
@@ -47,6 +47,12 @@ public class Unstuck implements IUserCommandHandler
|
|||||||
return false;
|
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);
|
final int unstuckTimer = (activeChar.getAccessLevel().isGm() ? 1000 : Config.UNSTUCK_INTERVAL * 1000);
|
||||||
|
|
||||||
if (activeChar.isInOlympiadMode())
|
if (activeChar.isInOlympiadMode())
|
||||||
|
@@ -47,6 +47,12 @@ public class Unstuck implements IUserCommandHandler
|
|||||||
return false;
|
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);
|
final int unstuckTimer = (activeChar.getAccessLevel().isGm() ? 1000 : Config.UNSTUCK_INTERVAL * 1000);
|
||||||
|
|
||||||
if (activeChar.isInOlympiadMode())
|
if (activeChar.isInOlympiadMode())
|
||||||
|
@@ -47,6 +47,12 @@ public class Unstuck implements IUserCommandHandler
|
|||||||
return false;
|
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);
|
final int unstuckTimer = (activeChar.getAccessLevel().isGm() ? 1000 : Config.UNSTUCK_INTERVAL * 1000);
|
||||||
|
|
||||||
if (activeChar.isInOlympiadMode())
|
if (activeChar.isInOlympiadMode())
|
||||||
|
@@ -47,6 +47,12 @@ public class Unstuck implements IUserCommandHandler
|
|||||||
return false;
|
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);
|
final int unstuckTimer = (activeChar.getAccessLevel().isGm() ? 1000 : Config.UNSTUCK_INTERVAL * 1000);
|
||||||
|
|
||||||
if (activeChar.isInOlympiadMode())
|
if (activeChar.isInOlympiadMode())
|
||||||
|
@@ -47,6 +47,12 @@ public class Unstuck implements IUserCommandHandler
|
|||||||
return false;
|
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);
|
final int unstuckTimer = (activeChar.getAccessLevel().isGm() ? 1000 : Config.UNSTUCK_INTERVAL * 1000);
|
||||||
|
|
||||||
if (activeChar.isInOlympiadMode())
|
if (activeChar.isInOlympiadMode())
|
||||||
|
@@ -57,6 +57,12 @@ public class Unstuck implements IUserCommandHandler
|
|||||||
return false;
|
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);
|
final int unstuckTimer = (activeChar.getAccessLevel().isGm() ? 1000 : Config.UNSTUCK_INTERVAL * 1000);
|
||||||
|
|
||||||
if (activeChar.isInOlympiadMode())
|
if (activeChar.isInOlympiadMode())
|
||||||
|
@@ -47,6 +47,12 @@ public class Unstuck implements IUserCommandHandler
|
|||||||
return false;
|
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);
|
final int unstuckTimer = (activeChar.getAccessLevel().isGm() ? 1000 : Config.UNSTUCK_INTERVAL * 1000);
|
||||||
|
|
||||||
if (activeChar.isInOlympiadMode())
|
if (activeChar.isInOlympiadMode())
|
||||||
|
@@ -47,6 +47,12 @@ public class Unstuck implements IUserCommandHandler
|
|||||||
return false;
|
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);
|
final int unstuckTimer = (activeChar.getAccessLevel().isGm() ? 1000 : Config.UNSTUCK_INTERVAL * 1000);
|
||||||
|
|
||||||
if (activeChar.isInOlympiadMode())
|
if (activeChar.isInOlympiadMode())
|
||||||
|
@@ -47,6 +47,12 @@ public class Unstuck implements IUserCommandHandler
|
|||||||
return false;
|
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);
|
final int unstuckTimer = (activeChar.getAccessLevel().isGm() ? 1000 : Config.UNSTUCK_INTERVAL * 1000);
|
||||||
|
|
||||||
if (activeChar.isInOlympiadMode())
|
if (activeChar.isInOlympiadMode())
|
||||||
|
@@ -47,6 +47,12 @@ public class Unstuck implements IUserCommandHandler
|
|||||||
return false;
|
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);
|
final int unstuckTimer = (activeChar.getAccessLevel().isGm() ? 1000 : Config.UNSTUCK_INTERVAL * 1000);
|
||||||
|
|
||||||
if (activeChar.isInOlympiadMode())
|
if (activeChar.isInOlympiadMode())
|
||||||
|
Reference in New Issue
Block a user