From 14be3a8e3b6430cc26676f9985129bef01b071a5 Mon Sep 17 00:00:00 2001 From: YoyoNow Date: Wed, 30 Jul 2025 21:01:18 +0200 Subject: [PATCH] Fix CheckpointUtilsJ9 --- .../src/de/steamwar/core/CheckpointUtilsJ9.java | 3 +-- .../Persistent/src/de/steamwar/persistent/Subserver.java | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SpigotCore/SpigotCore_Main/src/de/steamwar/core/CheckpointUtilsJ9.java b/SpigotCore/SpigotCore_Main/src/de/steamwar/core/CheckpointUtilsJ9.java index c0aaa807..81f936de 100644 --- a/SpigotCore/SpigotCore_Main/src/de/steamwar/core/CheckpointUtilsJ9.java +++ b/SpigotCore/SpigotCore_Main/src/de/steamwar/core/CheckpointUtilsJ9.java @@ -19,8 +19,8 @@ package de.steamwar.core; -import de.steamwar.Reflection; import com.comphenix.tinyprotocol.TinyProtocol; +import de.steamwar.Reflection; import de.steamwar.sql.internal.Statement; import io.netty.channel.ChannelFuture; import org.bukkit.Bukkit; @@ -143,7 +143,6 @@ class CheckpointUtilsJ9 { } Bukkit.getPluginManager().callEvent(new CRIUWakeupEvent()); - Thread.sleep(300); Core.getInstance().getLogger().log(Level.INFO, "Checkpoint restored"); } } diff --git a/VelocityCore/Persistent/src/de/steamwar/persistent/Subserver.java b/VelocityCore/Persistent/src/de/steamwar/persistent/Subserver.java index 9c24e450..7351e83a 100644 --- a/VelocityCore/Persistent/src/de/steamwar/persistent/Subserver.java +++ b/VelocityCore/Persistent/src/de/steamwar/persistent/Subserver.java @@ -221,6 +221,7 @@ public class Subserver { if (checkpoint) { start(process.getErrorStream(), line -> line.contains("Restore finished successfully.")); start(process.getInputStream(), line -> line.contains("Checkpoint restored")); + Thread.sleep(100); } else { start(process.getInputStream(), line -> { if (line.contains("Loading libraries, please wait"))