From d88f507337396231c8cc030260d7e1041e8f3166 Mon Sep 17 00:00:00 2001 From: "Kristian S. Stangeland" Date: Tue, 16 Oct 2012 07:59:03 +0200 Subject: [PATCH] Removed debug listener. --- .../comphenix/protocol/ProtocolLibrary.java | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/ProtocolLib/src/main/java/com/comphenix/protocol/ProtocolLibrary.java b/ProtocolLib/src/main/java/com/comphenix/protocol/ProtocolLibrary.java index 74b2108e..b4cd1bf2 100644 --- a/ProtocolLib/src/main/java/com/comphenix/protocol/ProtocolLibrary.java +++ b/ProtocolLib/src/main/java/com/comphenix/protocol/ProtocolLibrary.java @@ -86,9 +86,7 @@ public class ProtocolLibrary extends JavaPlugin { // Worker that ensures that async packets are eventually sent createAsyncTask(server); - - addDebugListener(); - + // Try to enable statistics try { statistisc = new Statistics(this); @@ -99,20 +97,6 @@ public class ProtocolLibrary extends JavaPlugin { } } - private void addDebugListener() { - // DEBUG DEBUG - protocolManager.addPacketListener(new MonitorAdapter(this, ConnectionSide.BOTH, logger) { - @Override - public void onPacketReceiving(PacketEvent event) { - System.out.println("RECEIVING " + event.getPacketID() + " from " + event.getPlayer().getName()); - }; - @Override - public void onPacketSending(PacketEvent event) { - System.out.println("SENDING " + event.getPacketID() + " to " + event.getPlayer().getName()); - } - }); - } - private void createAsyncTask(Server server) { try { if (asyncPacketTask >= 0)