fix: Unify superpickaxe behavior (#1553)

Fixes https://github.com/IntellectualSites/FastAsyncWorldEdit/issues/1547
This commit is contained in:
Alex 2022-01-21 14:41:24 +01:00 committed by GitHub
parent d17e3a6555
commit 016b4ba81d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -180,8 +180,8 @@ public class ToolUtilCommands {
} }
@Command( @Command(
name = "/superpickaxe", name = "/",
aliases = {",", "/sp", "/pickaxe", "/"}, aliases = {","},
desc = "Toggle the super pickaxe function" desc = "Toggle the super pickaxe function"
) )
@CommandPermissions("worldedit.superpickaxe") @CommandPermissions("worldedit.superpickaxe")

View File

@ -474,7 +474,9 @@ public final class PlatformCommandManager {
); );
registerSubCommands( registerSubCommands(
"superpickaxe", "superpickaxe",
ImmutableList.of("pickaxe", "sp"), //FAWE start - register /<command> commands
ImmutableList.of("pickaxe", "/pickaxe", "sp", "/sp"),
//FAWE end
"Super-pickaxe commands", "Super-pickaxe commands",
SuperPickaxeCommandsRegistration.builder(), SuperPickaxeCommandsRegistration.builder(),
new SuperPickaxeCommands(worldEdit) new SuperPickaxeCommands(worldEdit)