From cf961c88f53ac8a4a2ed5d4079a3b1bab9d0896f Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Sat, 26 Jun 2021 11:23:22 +0200 Subject: [PATCH] Changing Things around --- SpigotCore_Main/src/de/steamwar/core/Core.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/SpigotCore_Main/src/de/steamwar/core/Core.java b/SpigotCore_Main/src/de/steamwar/core/Core.java index c5c52ef..53a7fcf 100644 --- a/SpigotCore_Main/src/de/steamwar/core/Core.java +++ b/SpigotCore_Main/src/de/steamwar/core/Core.java @@ -57,11 +57,6 @@ public class Core extends JavaPlugin{ @Override public void onLoad() { - try { - Bukkit.getLogger().log(Level.INFO, "Node Name: " + new BufferedReader(new InputStreamReader(Runtime.getRuntime().exec("hostname").getInputStream())).readLine()); - } catch (IOException e) { - e.printStackTrace(); - } setInstance(this); } @@ -71,11 +66,16 @@ public class Core extends JavaPlugin{ Bukkit.getPluginManager().registerEvents(new ChattingEvent(), this); Bukkit.getPluginManager().registerEvents(new WorldLoadEvent(), this); ChunkListener.init(); - if(version >= 12) + if (version >= 12) ErrorLogger.init(); getServer().getMessenger().registerIncomingPluginChannel(this, "sw:bridge", new BungeeReceiver()); getServer().getMessenger().registerOutgoingPluginChannel(this, "sw:bridge"); AuthlibInjector.inject(); + try { + Bukkit.getLogger().log(Level.INFO, "Running on: " + new BufferedReader(new InputStreamReader(Runtime.getRuntime().exec("hostname").getInputStream())).readLine()); + } catch (IOException e) { + e.printStackTrace(); + } } @Override