Adjusting hardcoded access restrictions.
This commit is contained in:
parent
1f57042b4e
commit
49d216029e
@ -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();
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user