From e0895ef0427874a1e84e2433dea0f0d04d747a56 Mon Sep 17 00:00:00 2001 From: MattBDev <4009945+MattBDev@users.noreply.github.com> Date: Wed, 9 Oct 2019 21:05:47 -0400 Subject: [PATCH] New command fix attempt --- .../worldedit/extension/platform/PlatformCommandManager.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/PlatformCommandManager.java b/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/PlatformCommandManager.java index 3aaa08794..8e8f6f331 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/PlatformCommandManager.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/PlatformCommandManager.java @@ -544,7 +544,10 @@ public final class PlatformCommandManager { TaskManager.IMP.taskNow(() -> { int space0 = args.indexOf(' '); String arg0 = space0 == -1 ? args : args.substring(0, space0); - Optional optional = commandManager.getCommand(arg0); + if (arg0.startsWith("\\")) { + arg0 = arg0.substring(1); + } + Optional optional = commandManager.getCommand(arg0.); if (!optional.isPresent()) { System.out.println("No command for '" + arg0 + "' " + StringMan.getString(commandManager.getAllCommands().map( Command::getName).collect(Collectors.toList())));