Adjusting hardcoded access restrictions.

This commit is contained in:
MobiusDevelopment 2019-08-24 12:00:28 +00:00
parent 1f57042b4e
commit 49d216029e
4 changed files with 5 additions and 5 deletions

View File

@ -220,7 +220,7 @@ public class AdminCreateItem implements IAdminCommandHandler
{
if (activeChar.getTarget() instanceof PlayerInstance)
{
if ((activeChar.getAccessLevel().getLevel() > 0) && (activeChar.getAccessLevel().getLevel() < 3))
if ((activeChar.getAccessLevel().getLevel() > 0) && (activeChar.getAccessLevel().getLevel() > 70))
{
Player = (PlayerInstance) activeChar.getTarget();
}

View File

@ -446,7 +446,7 @@ public class AdminSkill implements IAdminCommandHandler
if (target instanceof PlayerInstance)
{
if ((target == activeChar) || ((target != activeChar) && (activeChar.getAccessLevel().getLevel() < 3)))
if ((target == activeChar) || ((target != activeChar) && (activeChar.getAccessLevel().getLevel() > 70)))
{
player = (PlayerInstance) target;
}

View File

@ -184,7 +184,7 @@ public class AdminTeleport implements IAdminCommandHandler
}
case admin_recall_party:
{
if (activeChar.isGM() && (activeChar.getAccessLevel().getLevel() != 1))
if (activeChar.isGM() && (activeChar.getAccessLevel().getLevel() != 100))
{
return false;
}

View File

@ -63,9 +63,9 @@ public class RequestDropItem extends GameClientPacket
return;
}
if (player.isGM() && (player.getAccessLevel().getLevel() > 2))
if (player.isGM() && (player.getAccessLevel().getLevel() < 80))
{ // just head gm and admin can drop items on the ground
sendPacket(SystemMessage.sendString("You have not right to discard anything from inventory"));
sendPacket(SystemMessage.sendString("You have not right to discard anything from inventory."));
return;
}