From c081180157eb3d037f43efba35f2963fdf6104a4 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Thu, 22 Apr 2021 19:21:27 +0200 Subject: [PATCH] Update AutoShutdownListener --- .../bausystem/features/world/AutoShutdownListener.java | 3 +++ 1 file changed, 3 insertions(+) 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 1baf6323..8ca28941 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/world/AutoShutdownListener.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/world/AutoShutdownListener.java @@ -69,6 +69,9 @@ public class AutoShutdownListener implements Listener { return; } count++; + if (count <= 120) { + return; + } try { if (RamUsage.getUsage() > 0.8) { Bukkit.shutdown();