From 53ada2de8338caf13e5018c936a732e30238bca5 Mon Sep 17 00:00:00 2001 From: YoyoNow Date: Tue, 19 May 2026 18:50:17 +0200 Subject: [PATCH] Add debug output to TinyProtocol --- .../src/com/comphenix/tinyprotocol/TinyProtocol.java | 1 + .../src/de/steamwar/core/CheckpointUtilsJ9.java | 7 ------- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/SpigotCore/SpigotCore_Main/src/com/comphenix/tinyprotocol/TinyProtocol.java b/SpigotCore/SpigotCore_Main/src/com/comphenix/tinyprotocol/TinyProtocol.java index 4f00dada..a46a8dda 100644 --- a/SpigotCore/SpigotCore_Main/src/com/comphenix/tinyprotocol/TinyProtocol.java +++ b/SpigotCore/SpigotCore_Main/src/com/comphenix/tinyprotocol/TinyProtocol.java @@ -423,6 +423,7 @@ public class TinyProtocol { */ public final void close() { if (!closed) { + System.out.println("Close TinyProtocol"); closed = true; // Remove our handlers diff --git a/SpigotCore/SpigotCore_Main/src/de/steamwar/core/CheckpointUtilsJ9.java b/SpigotCore/SpigotCore_Main/src/de/steamwar/core/CheckpointUtilsJ9.java index 19a78753..4ccbaaa7 100644 --- a/SpigotCore/SpigotCore_Main/src/de/steamwar/core/CheckpointUtilsJ9.java +++ b/SpigotCore/SpigotCore_Main/src/de/steamwar/core/CheckpointUtilsJ9.java @@ -24,7 +24,6 @@ import de.steamwar.Reflection; import de.steamwar.sql.internal.Statement; import io.netty.channel.ChannelFuture; import net.minecraft.server.MinecraftServer; -import net.minecraft.server.level.ServerPlayer; import net.minecraft.server.network.ServerConnectionListener; import org.bukkit.Bukkit; import org.bukkit.craftbukkit.CraftWorld; @@ -112,7 +111,6 @@ class CheckpointUtilsJ9 { ServerConnectionListener serverConnection = MinecraftServer.getServer().getConnection(); List channels = channelFutures.get(serverConnection); for (Object future : channels) { - System.out.println(((ChannelFuture) future).channel() + ": " + ((ChannelFuture) future).channel().pipeline().names()); ((ChannelFuture) future).channel().close().syncUninterruptibly(); } channels.clear(); @@ -148,15 +146,10 @@ class CheckpointUtilsJ9 { // Reopen socket serverConnection.startTcpServerListener(InetAddress.getLoopbackAddress(), port); for (Object future : channels) { - System.out.println(((ChannelFuture) future).channel() + ": " + ((ChannelFuture) future).channel().pipeline().names()); ((ChannelFuture) future).channel().config().setAutoRead(true); } Bukkit.getPluginManager().callEvent(new CRIUWakeupEvent()); Core.getInstance().getLogger().log(Level.INFO, "Checkpoint restored"); - - for (ServerPlayer player : MinecraftServer.getServer().getPlayerList().players) { - System.out.println(player); - } } }