Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void onActionRequest()
- {
- if (isSpawnProtected())
- {
- sendPacket(SystemMessage.getSystemMessage(SystemMessageId.YOU_ARE_NO_LONGER_PROTECTED_FROM_AGGRESSIVE_MONSTERS));
- if (Config.RESTORE_SERVITOR_ON_RECONNECT && getPet() == null && CharSummonTable.getInstance().getServitors().containsKey(getObjectId()))
- CharSummonTable.getInstance().restoreServitor(this);
- if (Config.RESTORE_PET_ON_RECONNECT && getPet() == null && CharSummonTable.getInstance().getPets().containsKey(getObjectId()))
- CharSummonTable.getInstance().restorePet(this);
- }
- if (isTeleportProtected())
- sendMessage("Teleport spawn protection ended.");
- getEventInfo().onAction();
- setProtection(false);
- setTeleportProtection(false);
- }
Add Comment
Please, Sign In to add comment