From 7ae525391e2a61218abfd8299c358e6bf32c777f Mon Sep 17 00:00:00 2001 From: yoyosource Date: Mon, 8 Aug 2022 05:51:43 +0200 Subject: [PATCH] Fix /minecraft:... commands in script system Signed-off-by: yoyosource --- .../de/steamwar/bausystem/features/script/ScriptExecutor.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/script/ScriptExecutor.java b/BauSystem_Main/src/de/steamwar/bausystem/features/script/ScriptExecutor.java index f03db253..d2c2186c 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/script/ScriptExecutor.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/script/ScriptExecutor.java @@ -135,6 +135,9 @@ public final class ScriptExecutor { continue; } + if (strings[0].contains(":")) { + continue; + } PlayerCommandPreprocessEvent preprocessEvent = new PlayerCommandPreprocessEvent(player, "/" + (specialCommand != null && command.startsWith(specialCommand) ? "script:" : "") + command); Bukkit.getServer().getPluginManager().callEvent(preprocessEvent);