From 016b4ba81ddfff286bdbaaccd42620450e5f958c Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 21 Jan 2022 14:41:24 +0100 Subject: [PATCH] fix: Unify superpickaxe behavior (#1553) Fixes https://github.com/IntellectualSites/FastAsyncWorldEdit/issues/1547 --- .../java/com/sk89q/worldedit/command/ToolUtilCommands.java | 4 ++-- .../worldedit/extension/platform/PlatformCommandManager.java | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/ToolUtilCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/ToolUtilCommands.java index 945498683..181711550 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/ToolUtilCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/ToolUtilCommands.java @@ -180,8 +180,8 @@ public class ToolUtilCommands { } @Command( - name = "/superpickaxe", - aliases = {",", "/sp", "/pickaxe", "/"}, + name = "/", + aliases = {","}, desc = "Toggle the super pickaxe function" ) @CommandPermissions("worldedit.superpickaxe") 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 4c23e353d..0d8aba906 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 @@ -474,7 +474,9 @@ public final class PlatformCommandManager { ); registerSubCommands( "superpickaxe", - ImmutableList.of("pickaxe", "sp"), + //FAWE start - register / commands + ImmutableList.of("pickaxe", "/pickaxe", "sp", "/sp"), + //FAWE end "Super-pickaxe commands", SuperPickaxeCommandsRegistration.builder(), new SuperPickaxeCommands(worldEdit)