diff --git a/SpigotCore_Main/src/SpigotCore.properties b/SpigotCore_Main/src/SpigotCore.properties index 2e52c4c..894dbf0 100644 --- a/SpigotCore_Main/src/SpigotCore.properties +++ b/SpigotCore_Main/src/SpigotCore.properties @@ -17,7 +17,7 @@ # along with this program. If not, see . # -COMMAND_SYSTEM_ERROR = §cFehler beim ausführen des Befehls! +COMMAND_SYSTEM_ERROR = §cFehler beim Ausführen des Befehls! SWLISINV_NEXT_PAGE_ACTIVE = §eSeite vor SWLISINV_NEXT_PAGE_INACTIVE = §7Seite vor diff --git a/SpigotCore_Main/src/de/steamwar/command/SWCommand.java b/SpigotCore_Main/src/de/steamwar/command/SWCommand.java index a96275d..a5377df 100644 --- a/SpigotCore_Main/src/de/steamwar/command/SWCommand.java +++ b/SpigotCore_Main/src/de/steamwar/command/SWCommand.java @@ -106,7 +106,9 @@ public abstract class SWCommand { if (Bukkit.getServer() != null) { Bukkit.getLogger().log(Level.SEVERE, "", e); } - Core.MESSAGE.send("COMMAND_SYSTEM_ERROR", sender); + if (Core.MESSAGE != null) { + Core.MESSAGE.send("COMMAND_SYSTEM_ERROR", sender); + } throw e; } }