From a6cf3be5f012b13b9c7386226f67b3c4b8db8faf Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Sat, 11 Sep 2021 13:13:28 +0200 Subject: [PATCH] Fix error Handleing --- SpigotCore_Main/src/de/steamwar/core/Core.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SpigotCore_Main/src/de/steamwar/core/Core.java b/SpigotCore_Main/src/de/steamwar/core/Core.java index 53a7fcf..984a8ab 100644 --- a/SpigotCore_Main/src/de/steamwar/core/Core.java +++ b/SpigotCore_Main/src/de/steamwar/core/Core.java @@ -74,7 +74,7 @@ public class Core extends JavaPlugin{ try { Bukkit.getLogger().log(Level.INFO, "Running on: " + new BufferedReader(new InputStreamReader(Runtime.getRuntime().exec("hostname").getInputStream())).readLine()); } catch (IOException e) { - e.printStackTrace(); + throw new SecurityException("Could not load Hostname", e); } }