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