Código:
===================================================================
F:\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2PcInstance.java
===================================================================
return lastVote;
}
+
+ public boolean isSpawnProtected()
+ {
+ return this._protectEndTime > GameTimeController.getGameTicks();
+ }
+
public int _active_boxes = -1;
public List<String> active_boxes_characters = new ArrayList<String>();
public void onActionRequest()
- {
- setProtection(false);
- }
+ {
+ if (isSpawnProtected())
+ sendMessage("You are no longer under teleport protection.");
+ stopAbnormalEffect(2097152);
+ setProtection(false);
+ }
// Force a revalidation
revalidateZone(true);
if(Config.PLAYER_SPAWN_PROTECTION > 0)
{
+ startAbnormalEffect(2097152);
setProtection(true);
}
===================================================================
F:\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\network\clientpackets\EnterWorld.java
===================================================================
if (Config.PLAYER_SPAWN_PROTECTION > 0)
{
+ activeChar.startAbnormalEffect(2097152);
activeChar.setProtection(true);
}
,
Creditos da DescJa