3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-09-16 04:51:22 +02:00

fix: Unify superpickaxe behavior (#1553)

Fixes https://github.com/IntellectualSites/FastAsyncWorldEdit/issues/1547
Dieser Commit ist enthalten in:
Alex 2022-01-21 14:41:24 +01:00 committet von GitHub
Ursprung d17e3a6555
Commit 016b4ba81d
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23
2 geänderte Dateien mit 5 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -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")

Datei anzeigen

@ -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)