From 55435c7d184dfaa6b97b536ddd78a5cc7ac76fe4 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sat, 3 Apr 2021 08:47:07 +0200 Subject: [PATCH] Fix log messages --- BauSystem_Main/src/de/steamwar/bausystem/BauSystem.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/BauSystem.java b/BauSystem_Main/src/de/steamwar/bausystem/BauSystem.java index 2fa43b8..177e168 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/BauSystem.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/BauSystem.java @@ -42,10 +42,6 @@ import org.bukkit.inventory.meta.ItemMeta; import org.bukkit.plugin.java.JavaPlugin; import org.bukkit.scheduler.BukkitTask; -import java.io.BufferedReader; -import java.io.IOException; -import java.io.InputStreamReader; -import java.lang.management.ManagementFactory; import java.util.UUID; import java.util.logging.Level; @@ -161,13 +157,12 @@ public class BauSystem extends JavaPlugin implements Listener { if (autoShutdown != null) { autoShutdown.cancel(); } - System.out.println("INIT AutoShutdown"); autoShutdown = Bukkit.getScheduler().runTaskTimer(this, new Runnable() { int count = 0; @Override public void run() { - System.out.println("RUN AutoShutdown " + count); + Bukkit.getLogger().log(Level.INFO, "RUN AutoShutdown " + count); if (count >= 300) { Bukkit.shutdown(); return; @@ -178,7 +173,6 @@ public class BauSystem extends JavaPlugin implements Listener { Bukkit.shutdown(); } } catch (Throwable throwable) { - throwable.printStackTrace(); Bukkit.getLogger().log(Level.WARNING, throwable.getMessage(), throwable); Bukkit.shutdown(); }