diff --git a/SpigotCore_Main/src/SpigotCore.properties b/SpigotCore_Main/src/SpigotCore.properties index 8a7692d..2e52c4c 100644 --- a/SpigotCore_Main/src/SpigotCore.properties +++ b/SpigotCore_Main/src/SpigotCore.properties @@ -17,6 +17,8 @@ # along with this program. If not, see . # +COMMAND_SYSTEM_ERROR = §cFehler beim ausführen des Befehls! + SWLISINV_NEXT_PAGE_ACTIVE = §eSeite vor SWLISINV_NEXT_PAGE_INACTIVE = §7Seite vor SWLISINV_PREVIOUS_PAGE_ACTIVE = §eSeite zurück diff --git a/SpigotCore_Main/src/de/steamwar/command/SWCommand.java b/SpigotCore_Main/src/de/steamwar/command/SWCommand.java index 6d58c5b..a96275d 100644 --- a/SpigotCore_Main/src/de/steamwar/command/SWCommand.java +++ b/SpigotCore_Main/src/de/steamwar/command/SWCommand.java @@ -19,6 +19,7 @@ package de.steamwar.command; +import de.steamwar.core.Core; import de.steamwar.message.Message; import lombok.Setter; import net.md_5.bungee.api.chat.ClickEvent; @@ -105,6 +106,7 @@ public abstract class SWCommand { if (Bukkit.getServer() != null) { Bukkit.getLogger().log(Level.SEVERE, "", e); } + Core.MESSAGE.send("COMMAND_SYSTEM_ERROR", sender); throw e; } }