Sync with L2JServer Feb 7th 2015.
This commit is contained in:
@@ -681,19 +681,19 @@ public class AdminEffects implements IAdminCommandHandler
|
||||
{
|
||||
try
|
||||
{
|
||||
if (target instanceof L2Character)
|
||||
if (target.isCharacter())
|
||||
{
|
||||
if (target instanceof L2ChestInstance)
|
||||
{
|
||||
activeChar.sendPacket(SystemMessageId.NOTHING_HAPPENED);
|
||||
return false;
|
||||
}
|
||||
if ((target instanceof L2Npc) && ((action < 1) || (action > 3)))
|
||||
if ((target.isNpc()) && ((action < 1) || (action > 20)))
|
||||
{
|
||||
activeChar.sendPacket(SystemMessageId.NOTHING_HAPPENED);
|
||||
return false;
|
||||
}
|
||||
if ((target instanceof L2PcInstance) && ((action < 2) || ((action > 18) && (action != SocialAction.LEVEL_UP))))
|
||||
if ((target.isPlayer()) && ((action < 2) || ((action > 18) && (action != SocialAction.LEVEL_UP))))
|
||||
{
|
||||
activeChar.sendPacket(SystemMessageId.NOTHING_HAPPENED);
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user