From 563d6b829847e2f42cd97879dbdc53104cb5d4ed Mon Sep 17 00:00:00 2001 From: yoyosource Date: Mon, 3 May 2021 18:02:36 +0200 Subject: [PATCH] Fix AFKStopperListener --- .../de/steamwar/bausystem/features/world/AFKStopperListener.java | 1 + 1 file changed, 1 insertion(+) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/world/AFKStopperListener.java b/BauSystem_Main/src/de/steamwar/bausystem/features/world/AFKStopperListener.java index d487e76d..7347bf18 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/world/AFKStopperListener.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/world/AFKStopperListener.java @@ -42,6 +42,7 @@ public class AFKStopperListener implements Listener { case 5: if (Bukkit.getOnlinePlayers().isEmpty()) { Bukkit.shutdown(); + return; } for (Player p : Bukkit.getOnlinePlayers()) { p.kickPlayer(ColorConfig.DISABLE + "Auf diesem Server ist seit 5 Minuten nichts passiert.");