From aead25650e99f0f3f4ac9b8a9ea7073fa27fdd0a Mon Sep 17 00:00:00 2001 From: YoyoNow Date: Tue, 19 May 2026 18:55:46 +0200 Subject: [PATCH] Add debug output to TinyProtocol --- .../src/com/comphenix/tinyprotocol/TinyProtocol.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/SpigotCore/SpigotCore_Main/src/com/comphenix/tinyprotocol/TinyProtocol.java b/SpigotCore/SpigotCore_Main/src/com/comphenix/tinyprotocol/TinyProtocol.java index a46a8dda..332085b9 100644 --- a/SpigotCore/SpigotCore_Main/src/com/comphenix/tinyprotocol/TinyProtocol.java +++ b/SpigotCore/SpigotCore_Main/src/com/comphenix/tinyprotocol/TinyProtocol.java @@ -21,6 +21,7 @@ package com.comphenix.tinyprotocol; import com.google.common.collect.MapMaker; import de.steamwar.Reflection; +import de.steamwar.core.CRIUWakeupEvent; import de.steamwar.core.Core; import io.netty.channel.*; 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); @@ -423,7 +428,6 @@ public class TinyProtocol { */ public final void close() { if (!closed) { - System.out.println("Close TinyProtocol"); closed = true; // Remove our handlers