forked from SteamWar/SteamWar
Add debug output to TinyProtocol
This commit is contained in:
@@ -21,6 +21,7 @@ package com.comphenix.tinyprotocol;
|
|||||||
|
|
||||||
import com.google.common.collect.MapMaker;
|
import com.google.common.collect.MapMaker;
|
||||||
import de.steamwar.Reflection;
|
import de.steamwar.Reflection;
|
||||||
|
import de.steamwar.core.CRIUWakeupEvent;
|
||||||
import de.steamwar.core.Core;
|
import de.steamwar.core.Core;
|
||||||
import io.netty.channel.*;
|
import io.netty.channel.*;
|
||||||
import net.minecraft.network.Connection;
|
import net.minecraft.network.Connection;
|
||||||
@@ -182,6 +183,10 @@ public class TinyProtocol {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@EventHandler
|
||||||
|
public void onCRIUWakeup(CRIUWakeupEvent event) {
|
||||||
|
registerChannelHandler();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
plugin.getServer().getPluginManager().registerEvents(listener, plugin);
|
plugin.getServer().getPluginManager().registerEvents(listener, plugin);
|
||||||
@@ -423,7 +428,6 @@ public class TinyProtocol {
|
|||||||
*/
|
*/
|
||||||
public final void close() {
|
public final void close() {
|
||||||
if (!closed) {
|
if (!closed) {
|
||||||
System.out.println("Close TinyProtocol");
|
|
||||||
closed = true;
|
closed = true;
|
||||||
|
|
||||||
// Remove our handlers
|
// Remove our handlers
|
||||||
|
|||||||
Reference in New Issue
Block a user