From b20a85ab2e262aec73a7dcf4e7549de616d817fd Mon Sep 17 00:00:00 2001 From: yoyosource Date: Fri, 3 Dec 2021 16:02:38 +0100 Subject: [PATCH] Fix ScriptCommand Signed-off-by: yoyosource --- .../steamwar/bausystem/features/script/ScriptCommand.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/script/ScriptCommand.java b/BauSystem_Main/src/de/steamwar/bausystem/features/script/ScriptCommand.java index 88f96929..1d8eeb48 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/script/ScriptCommand.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/script/ScriptCommand.java @@ -134,7 +134,11 @@ public class ScriptCommand extends SWCommand { if (o != null) { BauSystem.MESSAGE.send("SCRIPT_GUI_COMMAND_CHAT", p, o.command()); for (String s : o.description()) { - BauSystem.MESSAGE.send(s, p); + if (s.isEmpty()) { + BauSystem.MESSAGE.send("PREFIX", p); + } else { + BauSystem.MESSAGE.send(s, p); + } } p.closeInventory(); }