Sfoglia il codice sorgente

Gnacik: error : http://pastebin.org/300754

also one thing in flood protector :
>= instead of > 
because for example if we want to kick player after 1 too much request we cannot do that. if we setup 1 in config we need 2 count.get to kick player. 0 disable feature. so now we can kick only for 2 too much requests ;P
JIV 15 anni fa
parent
commit
8e2d406686

+ 2 - 0
L2_GameServer/java/com/l2jserver/gameserver/model/actor/L2Npc.java

@@ -678,6 +678,8 @@ public class L2Npc extends L2Character
 		{
 			for (L2PcInstance player : plrs)
 			{
+				if (player == null)
+					continue;
 				if (getRunSpeed() == 0)
 					player.sendPacket(new ServerObjectInfo(this, player));
 				else

+ 1 - 1
L2_GameServer/java/com/l2jserver/gameserver/util/FloodProtectorAction.java

@@ -95,7 +95,7 @@ public final class FloodProtectorAction
 			
 			_count.incrementAndGet();
 			
-			if (!_punishmentInProgress && _config.PUNISHMENT_LIMIT > 0 && _count.get() > _config.PUNISHMENT_LIMIT && _config.PUNISHMENT_TYPE != null)
+			if (!_punishmentInProgress && _config.PUNISHMENT_LIMIT > 0 && _count.get() >= _config.PUNISHMENT_LIMIT && _config.PUNISHMENT_TYPE != null)
 			{
 				_punishmentInProgress = true;