{ // GM has to receive remove however because he can see any invisible or inobservermode player
if (!object_char.getAppearance().getInvisible() && !object_char.inObserverMode())
{
// Send Server-Client Packet DeleteObject to the L2PcInstance
active_char.sendPacket(new DeleteObject(object));
}
else if (object_char.isGM() && object_char.getAppearance().getInvisible() && !object_char.isTeleporting())
{
// Send Server-Client Packet DeleteObject to the L2PcInstance
active_char.sendPacket(new DeleteObject(object));
}
}
else
{ // All other objects has to be removed
// Send Server-Client Packet DeleteObject to the L2PcInstance
active_char.sendPacket(new DeleteObject(object));
}
if (Config.CHECK_KNOWN && object instanceof L2NpcInstance)
{
active_char.sendMessage("Removed NPC: " + ((L2NpcInstance) object).getName());