From 84b896151f7592522645637901828bcb4c46b002 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Tue, 21 Sep 2021 14:39:14 +0100 Subject: [PATCH] Lazy fix for #1271 --- .../main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java index a0b56a017..518993e5a 100644 --- a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java +++ b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java @@ -436,7 +436,8 @@ public class WorldEditPlugin extends JavaPlugin { // code of WorldEdit expects it String[] split = new String[args.length + 1]; System.arraycopy(args, 0, split, 1, args.length); - split[0] = commandLabel; + split[0] = commandLabel.startsWith("fastasyncworldedit:") ? commandLabel.replace("fastasyncworldedit:", "") : + commandLabel; CommandEvent event = new CommandEvent(wrapCommandSender(sender), Joiner.on(" ").join(split)); getWorldEdit().getEventBus().post(event);