Ex server packet debugging.
This commit is contained in:
		@@ -234,15 +234,6 @@ public class GameClient extends ChannelInboundHandler<GameClient>
 | 
			
		||||
				return;
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
			if (Config.DEBUG_OUTGOING_PACKETS)
 | 
			
		||||
			{
 | 
			
		||||
				final String name = packet.getClass().getSimpleName();
 | 
			
		||||
				if (!Config.ALT_DEV_EXCLUDED_PACKETS.contains(name))
 | 
			
		||||
				{
 | 
			
		||||
					PacketLogger.info("[S] " + name);
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
			
 | 
			
		||||
			// TODO: Set as parameter to packets used?
 | 
			
		||||
			if (Config.MULTILANG_ENABLE)
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -16,6 +16,7 @@
 | 
			
		||||
 */
 | 
			
		||||
package org.l2jmobius.gameserver.network;
 | 
			
		||||
 | 
			
		||||
import org.l2jmobius.Config;
 | 
			
		||||
import org.l2jmobius.commons.network.PacketWriter;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
@@ -815,6 +816,15 @@ public enum OutgoingPackets
 | 
			
		||||
	
 | 
			
		||||
	public void writeId(PacketWriter packet)
 | 
			
		||||
	{
 | 
			
		||||
		if (Config.DEBUG_OUTGOING_PACKETS)
 | 
			
		||||
		{
 | 
			
		||||
			final String name = packet.getClass().getSimpleName();
 | 
			
		||||
			if (!Config.ALT_DEV_EXCLUDED_PACKETS.contains(name))
 | 
			
		||||
			{
 | 
			
		||||
				PacketLogger.info((_id2 > 0 ? "[S EX] " : "[S] ") + name);
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		
 | 
			
		||||
		packet.writeC(_id1);
 | 
			
		||||
		if (_id2 > 0)
 | 
			
		||||
		{
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user