Removed debug listener.
Dieser Commit ist enthalten in:
Ursprung
b52670c4b3
Commit
d88f507337
@ -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)
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren