From 7400db072364a9829eb5fb806f53f488ca68dbb9 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sun, 20 Nov 2022 12:39:39 +0100 Subject: [PATCH] Update AutoShutdownListener Signed-off-by: yoyosource --- .../features/world/AutoShutdownListener.java | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/world/AutoShutdownListener.java b/BauSystem_Main/src/de/steamwar/bausystem/features/world/AutoShutdownListener.java index 54a8bd82..0fce31c9 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/world/AutoShutdownListener.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/world/AutoShutdownListener.java @@ -31,8 +31,6 @@ import org.bukkit.event.player.PlayerLoginEvent; import org.bukkit.event.player.PlayerQuitEvent; import org.bukkit.scheduler.BukkitTask; -import java.util.logging.Level; - @Linked public class AutoShutdownListener implements Listener { @@ -58,7 +56,7 @@ public class AutoShutdownListener implements Listener { autoShutdown.cancel(); } TPSLimitUtils.setTPS(20.0); - if (true) { + if (false) { Bukkit.shutdown(); return; } @@ -71,14 +69,6 @@ public class AutoShutdownListener implements Listener { Bukkit.shutdown(); return; } - try { - if (RamUsage.getUsage() > 0.8) { - Bukkit.shutdown(); - } - } catch (Throwable throwable) { - Bukkit.getLogger().log(Level.WARNING, throwable.getMessage(), throwable); - Bukkit.shutdown(); - } count++; } }, 20, 20);