Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Eclipse Workspace Patch 1.0
- #P aCis_gameserver
- Index: java/net/sf/l2j/gameserver/model/actor/stat/UserInfo.java
- ===================================================================
- --- java/net/sf/l2j/gameserver/model/actor/stat/UserInfo.java (revision 1)
- +++ java/net/sf/l2j/gameserver/model/actor/stat/UserInfo.java (working copy)
- + if (_activeChar.getTeam() == 1)
- - if (_activeChar.getTeam() == 1 || (Config.PLAYER_SPAWN_PROTECTION > 0 && _activeChar.isSpawnProtected()))
- writeC(0x01); // team circle around feet 1= Blue, 2 = red
- Index: java/net/sf/l2j/gameserver/model/actor/stat/CharInfo.java
- ===================================================================
- --- java/net/sf/l2j/gameserver/model/actor/stat/CharInfo.java (revision 1)
- +++ java/net/sf/l2j/gameserver/model/actor/stat/CharInfo.java (working copy)
- + if (_activeChar.getTeam() == 1)
- - if (_activeChar.getTeam() == 1 || (Config.PLAYER_SPAWN_PROTECTION > 0 && _activeChar.isSpawnProtected()))
- writeC(0x01); // team circle around feet 1= Blue, 2 = red
- Index: java/net/sf/l2j/gameserver/model/actor/stat/L2PcInstance.java
- ===================================================================
- --- java/net/sf/l2j/gameserver/model/actor/stat/L2PcInstance.java (revision 1)
- +++ java/net/sf/l2j/gameserver/model/actor/stat/L2PcInstance.java (working copy)
- public void setProtection(boolean protect)
- {
- final L2PcInstance player = getClient().getActiveChar();
- if (protect)
- {
- if (_protectTask == null)
- _protectTask = ThreadPoolManager.getInstance().scheduleGeneral(new ProtectTask(), Config.PLAYER_SPAWN_PROTECTION * 1000);
- + player.startAbnormalEffect(AbnormalEffect.IMPRISIONING_2);
- }
- else
- {
- _protectTask.cancel(true);
- _protectTask = null;
- + player.stopAbnormalEffect(AbnormalEffect.IMPRISIONING_2);
- }
- broadcastUserInfo();
- }
Advertisement
Add Comment
Please, Sign In to add comment