Lazy fix for #1271

This commit is contained in:
dordsor21 2021-09-21 14:39:14 +01:00
parent d0056870be
commit 84b896151f
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -436,7 +436,8 @@ public class WorldEditPlugin extends JavaPlugin {
// code of WorldEdit expects it // code of WorldEdit expects it
String[] split = new String[args.length + 1]; String[] split = new String[args.length + 1];
System.arraycopy(args, 0, split, 1, args.length); 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)); CommandEvent event = new CommandEvent(wrapCommandSender(sender), Joiner.on(" ").join(split));
getWorldEdit().getEventBus().post(event); getWorldEdit().getEventBus().post(event);