mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2024-09-11 23:28:04 +02:00
Removed debug listener.
This commit is contained in:
parent
b52670c4b3
commit
d88f507337
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user