Archiviert
13
0

Removed debug listener.

Dieser Commit ist enthalten in:
Kristian S. Stangeland 2012-10-16 07:59:03 +02:00
Ursprung b52670c4b3
Commit d88f507337

Datei anzeigen

@ -87,8 +87,6 @@ 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)