From ad28b4fb4ee0feb789fb14aaab2e62cfb605316e Mon Sep 17 00:00:00 2001 From: jojo Date: Fri, 25 Dec 2020 16:24:42 +0100 Subject: [PATCH] Hotfix --- SpigotCore_Main/src/de/steamwar/core/events/ChunkListener.java | 1 - SpigotCore_Main/src/de/steamwar/sql/SteamwarUser.java | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/SpigotCore_Main/src/de/steamwar/core/events/ChunkListener.java b/SpigotCore_Main/src/de/steamwar/core/events/ChunkListener.java index 685ad3b..86d07ab 100644 --- a/SpigotCore_Main/src/de/steamwar/core/events/ChunkListener.java +++ b/SpigotCore_Main/src/de/steamwar/core/events/ChunkListener.java @@ -46,7 +46,6 @@ public class ChunkListener { return; try{ - System.out.println(p.getUniqueId()); SteamwarUser user = SteamwarUser.get(p.getUniqueId()); if(!user.isBedrock()) return; diff --git a/SpigotCore_Main/src/de/steamwar/sql/SteamwarUser.java b/SpigotCore_Main/src/de/steamwar/sql/SteamwarUser.java index a67130f..3a241bc 100644 --- a/SpigotCore_Main/src/de/steamwar/sql/SteamwarUser.java +++ b/SpigotCore_Main/src/de/steamwar/sql/SteamwarUser.java @@ -97,7 +97,7 @@ public class SteamwarUser { throw new SecurityException("SQL Statement failed to get User", e); } Bukkit.getLogger().severe("Unexpected Server Exception '" + statement + "' and '" + identifier + "'"); - return null; + throw new IllegalStateException("This should never happen. Check your configs. Especially spigot.yml and spigot-1.8.yml and spigot-1.14.yml, key 'bungeecord' should be true. In the server.properties should be 'online-mode' set to false. Check the BungeeCord configs to be extra sure. THIS SHOULD NEVER GET THROWN!"); } public static SteamwarUser get(String userName){