From 5cb99349b0cf91cf33e2c3b1d67f9605b3419b2a Mon Sep 17 00:00:00 2001 From: yoyosource Date: Wed, 2 Feb 2022 16:04:57 +0100 Subject: [PATCH] Update 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 2fdfce29..4c2c1e99 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/script/ScriptCommand.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/script/ScriptCommand.java @@ -81,7 +81,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.isEmpty() ? "PREFIX" : s, p); + if (s.isEmpty()) { + BauSystem.MESSAGE.sendPrefixless("PREFIX", p); + } else { + BauSystem.MESSAGE.send(s, p); + } } p.closeInventory(); }