Removed debug listener.

This commit is contained in:
Kristian S. Stangeland 2012-10-16 07:59:03 +02:00
parent b52670c4b3
commit d88f507337

View File

@ -87,8 +87,6 @@ public class ProtocolLibrary extends JavaPlugin {
// Worker that ensures that async packets are eventually sent // Worker that ensures that async packets are eventually sent
createAsyncTask(server); createAsyncTask(server);
addDebugListener();
// Try to enable statistics // Try to enable statistics
try { try {
statistisc = new Statistics(this); 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) { private void createAsyncTask(Server server) {
try { try {
if (asyncPacketTask >= 0) if (asyncPacketTask >= 0)