From 949ba46a1627e03c02c1e68609a2d4c705e5044d Mon Sep 17 00:00:00 2001 From: Zax71 Date: Tue, 27 Aug 2024 19:59:21 +0100 Subject: [PATCH] Add legacy aliases --- .../org/mvplugins/multiverse/core/commands/CheckCommand.java | 1 + .../org/mvplugins/multiverse/core/commands/CloneCommand.java | 1 + .../org/mvplugins/multiverse/core/commands/ConfigCommand.java | 1 + .../org/mvplugins/multiverse/core/commands/ConfirmCommand.java | 2 ++ .../mvplugins/multiverse/core/commands/CoordinatesCommand.java | 2 +- .../org/mvplugins/multiverse/core/commands/CreateCommand.java | 1 + .../org/mvplugins/multiverse/core/commands/DebugCommand.java | 1 + .../org/mvplugins/multiverse/core/commands/DeleteCommand.java | 1 + .../org/mvplugins/multiverse/core/commands/GameruleCommand.java | 1 + .../mvplugins/multiverse/core/commands/GeneratorsCommand.java | 2 +- .../org/mvplugins/multiverse/core/commands/ImportCommand.java | 1 + .../org/mvplugins/multiverse/core/commands/InfoCommand.java | 1 + .../org/mvplugins/multiverse/core/commands/ListCommand.java | 1 + .../org/mvplugins/multiverse/core/commands/LoadCommand.java | 1 + .../org/mvplugins/multiverse/core/commands/ModifyCommand.java | 1 + .../org/mvplugins/multiverse/core/commands/RegenCommand.java | 1 + .../org/mvplugins/multiverse/core/commands/ReloadCommand.java | 1 + .../org/mvplugins/multiverse/core/commands/RemoveCommand.java | 1 + .../org/mvplugins/multiverse/core/commands/UnloadCommand.java | 1 + .../org/mvplugins/multiverse/core/commands/VersionCommand.java | 1 + 20 files changed, 21 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/mvplugins/multiverse/core/commands/CheckCommand.java b/src/main/java/org/mvplugins/multiverse/core/commands/CheckCommand.java index 0a2f165b..a1283ff0 100644 --- a/src/main/java/org/mvplugins/multiverse/core/commands/CheckCommand.java +++ b/src/main/java/org/mvplugins/multiverse/core/commands/CheckCommand.java @@ -30,6 +30,7 @@ class CheckCommand extends MultiverseCommand { this.destinationsProvider = destinationsProvider; } + @CommandAlias("mvcheck") @Subcommand("check") @CommandPermission("multiverse.core.check") @CommandCompletion("@players @destinations|@mvworlds") diff --git a/src/main/java/org/mvplugins/multiverse/core/commands/CloneCommand.java b/src/main/java/org/mvplugins/multiverse/core/commands/CloneCommand.java index 9493e7ad..5875e110 100644 --- a/src/main/java/org/mvplugins/multiverse/core/commands/CloneCommand.java +++ b/src/main/java/org/mvplugins/multiverse/core/commands/CloneCommand.java @@ -46,6 +46,7 @@ class CloneCommand extends MultiverseCommand { this.worldManager = worldManager; } + @CommandAlias("mvcl|mvclone") @Subcommand("clone") @CommandPermission("multiverse.core.clone") @CommandCompletion("@mvworlds:scope=loaded @empty @flags:groupName=mvclonecommand") diff --git a/src/main/java/org/mvplugins/multiverse/core/commands/ConfigCommand.java b/src/main/java/org/mvplugins/multiverse/core/commands/ConfigCommand.java index 18ac8b06..ec0d17e1 100644 --- a/src/main/java/org/mvplugins/multiverse/core/commands/ConfigCommand.java +++ b/src/main/java/org/mvplugins/multiverse/core/commands/ConfigCommand.java @@ -30,6 +30,7 @@ class ConfigCommand extends MultiverseCommand { this.config = config; } + @CommandAlias("mvconfig|mvconf") @Subcommand("config") @CommandPermission("multiverse.core.config") @CommandCompletion("@mvconfigs @mvconfigvalues") diff --git a/src/main/java/org/mvplugins/multiverse/core/commands/ConfirmCommand.java b/src/main/java/org/mvplugins/multiverse/core/commands/ConfirmCommand.java index b14fd6a6..d0acf236 100644 --- a/src/main/java/org/mvplugins/multiverse/core/commands/ConfirmCommand.java +++ b/src/main/java/org/mvplugins/multiverse/core/commands/ConfirmCommand.java @@ -6,6 +6,7 @@ import co.aikar.commands.annotation.CommandPermission; import co.aikar.commands.annotation.Description; import co.aikar.commands.annotation.Subcommand; import jakarta.inject.Inject; +import org.checkerframework.checker.units.qual.C; import org.jetbrains.annotations.NotNull; import org.jvnet.hk2.annotations.Service; @@ -21,6 +22,7 @@ class ConfirmCommand extends MultiverseCommand { super(commandManager); } + @CommandAlias("mvconfirm") @Subcommand("confirm") @CommandPermission("multiverse.core.confirm") @Description("{@@mv-core.confirm.description}") diff --git a/src/main/java/org/mvplugins/multiverse/core/commands/CoordinatesCommand.java b/src/main/java/org/mvplugins/multiverse/core/commands/CoordinatesCommand.java index dcf48f2d..71055ba8 100644 --- a/src/main/java/org/mvplugins/multiverse/core/commands/CoordinatesCommand.java +++ b/src/main/java/org/mvplugins/multiverse/core/commands/CoordinatesCommand.java @@ -30,7 +30,7 @@ class CoordinatesCommand extends MultiverseCommand { super(commandManager); this.locationManipulation = locationManipulation; } - + @CommandAlias("mvcoord|mvco") @Subcommand("coordinates|coords|coord|co") @CommandPermission("multiverse.core.coord") @Description("{@@mv-core.coordinates.description}") diff --git a/src/main/java/org/mvplugins/multiverse/core/commands/CreateCommand.java b/src/main/java/org/mvplugins/multiverse/core/commands/CreateCommand.java index e05f6125..824bc554 100644 --- a/src/main/java/org/mvplugins/multiverse/core/commands/CreateCommand.java +++ b/src/main/java/org/mvplugins/multiverse/core/commands/CreateCommand.java @@ -69,6 +69,7 @@ class CreateCommand extends MultiverseCommand { this.generatorProvider = generatorProvider; } + @CommandAlias("mvcreate|mvc") @Subcommand("create") @CommandPermission("multiverse.core.create") @CommandCompletion("@empty @environments @flags:groupName=mvcreatecommand") diff --git a/src/main/java/org/mvplugins/multiverse/core/commands/DebugCommand.java b/src/main/java/org/mvplugins/multiverse/core/commands/DebugCommand.java index 7a315471..119074eb 100644 --- a/src/main/java/org/mvplugins/multiverse/core/commands/DebugCommand.java +++ b/src/main/java/org/mvplugins/multiverse/core/commands/DebugCommand.java @@ -36,6 +36,7 @@ class DebugCommand extends MultiverseCommand { this.displayDebugMode(issuer); } + @CommandAlias("mvdebug") @Subcommand("debug") @CommandPermission("multiverse.core.debug") @CommandCompletion("@range:3") diff --git a/src/main/java/org/mvplugins/multiverse/core/commands/DeleteCommand.java b/src/main/java/org/mvplugins/multiverse/core/commands/DeleteCommand.java index db4d448f..3d5a50d9 100644 --- a/src/main/java/org/mvplugins/multiverse/core/commands/DeleteCommand.java +++ b/src/main/java/org/mvplugins/multiverse/core/commands/DeleteCommand.java @@ -50,6 +50,7 @@ class DeleteCommand extends MultiverseCommand { this.playerWorldTeleporter = playerWorldTeleporter; } + @CommandAlias("mvdelete") @Subcommand("delete") @CommandPermission("multiverse.core.delete") @CommandCompletion("@mvworlds:scope=loaded @flags:groupName=mvdeletecommand") diff --git a/src/main/java/org/mvplugins/multiverse/core/commands/GameruleCommand.java b/src/main/java/org/mvplugins/multiverse/core/commands/GameruleCommand.java index b3f68a1d..74c8f769 100644 --- a/src/main/java/org/mvplugins/multiverse/core/commands/GameruleCommand.java +++ b/src/main/java/org/mvplugins/multiverse/core/commands/GameruleCommand.java @@ -72,6 +72,7 @@ class GameruleCommand extends MultiverseCommand { super(commandManager); } + @Subcommand("set") @CommandPermission("multiverse.core.gamerule.set") @CommandCompletion("@gamerules true|false|@range:1-10 @mvworlds:multiple|*") diff --git a/src/main/java/org/mvplugins/multiverse/core/commands/GeneratorsCommand.java b/src/main/java/org/mvplugins/multiverse/core/commands/GeneratorsCommand.java index 372fb2c2..44ef4678 100644 --- a/src/main/java/org/mvplugins/multiverse/core/commands/GeneratorsCommand.java +++ b/src/main/java/org/mvplugins/multiverse/core/commands/GeneratorsCommand.java @@ -68,7 +68,7 @@ class GeneratorsCommand extends MultiverseCommand { super(commandManager); this.generatorProvider = generatorProvider; } - + @CommandAlias("mvgenerators|mvgens") @Subcommand("generators|gens") @CommandPermission("multiverse.core.generator") @CommandCompletion("@flags:groupName=mvgeneratorscommand @flags:groupName=mvgeneratorscommand") diff --git a/src/main/java/org/mvplugins/multiverse/core/commands/ImportCommand.java b/src/main/java/org/mvplugins/multiverse/core/commands/ImportCommand.java index 859de2dd..bc351967 100644 --- a/src/main/java/org/mvplugins/multiverse/core/commands/ImportCommand.java +++ b/src/main/java/org/mvplugins/multiverse/core/commands/ImportCommand.java @@ -52,6 +52,7 @@ class ImportCommand extends MultiverseCommand { this.generatorProvider = generatorProvider; } + @CommandAlias("mvimport|mvim") @Subcommand("import") @CommandPermission("multiverse.core.import") @CommandCompletion("@mvworlds:scope=potential @environments @flags:groupName=mvimportcommand") diff --git a/src/main/java/org/mvplugins/multiverse/core/commands/InfoCommand.java b/src/main/java/org/mvplugins/multiverse/core/commands/InfoCommand.java index 60436e8d..2f5d0fa7 100644 --- a/src/main/java/org/mvplugins/multiverse/core/commands/InfoCommand.java +++ b/src/main/java/org/mvplugins/multiverse/core/commands/InfoCommand.java @@ -75,6 +75,7 @@ class InfoCommand extends MultiverseCommand { } // TODO: support info for unloaded worlds + @CommandAlias("mvinfo|mvi") @Subcommand("info") @CommandPermission("multiverse.core.info") @CommandCompletion("@mvworlds:scope=both|@flags:groupName=mvinfocommand @flags:groupName=mvinfocommand") diff --git a/src/main/java/org/mvplugins/multiverse/core/commands/ListCommand.java b/src/main/java/org/mvplugins/multiverse/core/commands/ListCommand.java index 7ac60aed..307f0816 100644 --- a/src/main/java/org/mvplugins/multiverse/core/commands/ListCommand.java +++ b/src/main/java/org/mvplugins/multiverse/core/commands/ListCommand.java @@ -73,6 +73,7 @@ class ListCommand extends MultiverseCommand { this.worldEntryCheckerProvider = worldEntryCheckerProvider; } + @CommandAlias("mvlist|mvl") @Subcommand("list") @CommandPermission("multiverse.core.list.worlds") @CommandCompletion("@flags:groupName=mvlistcommand") diff --git a/src/main/java/org/mvplugins/multiverse/core/commands/LoadCommand.java b/src/main/java/org/mvplugins/multiverse/core/commands/LoadCommand.java index e72ef798..a5e75f74 100644 --- a/src/main/java/org/mvplugins/multiverse/core/commands/LoadCommand.java +++ b/src/main/java/org/mvplugins/multiverse/core/commands/LoadCommand.java @@ -31,6 +31,7 @@ class LoadCommand extends MultiverseCommand { this.worldManager = worldManager; } + @CommandAlias("mvload") @Subcommand("load") @CommandPermission("multiverse.core.load") @CommandCompletion("@mvworlds:scope=unloaded") diff --git a/src/main/java/org/mvplugins/multiverse/core/commands/ModifyCommand.java b/src/main/java/org/mvplugins/multiverse/core/commands/ModifyCommand.java index 87a58e0b..6de64d25 100644 --- a/src/main/java/org/mvplugins/multiverse/core/commands/ModifyCommand.java +++ b/src/main/java/org/mvplugins/multiverse/core/commands/ModifyCommand.java @@ -33,6 +33,7 @@ class ModifyCommand extends MultiverseCommand { this.worldManager = worldManager; } + @CommandAlias("mvmodify|mvm") @Subcommand("modify") @CommandPermission("multiverse.core.modify") @CommandCompletion("@mvworlds:scope=both @propsmodifyaction @mvworldpropsname @mvworldpropsvalue") diff --git a/src/main/java/org/mvplugins/multiverse/core/commands/RegenCommand.java b/src/main/java/org/mvplugins/multiverse/core/commands/RegenCommand.java index 23f56a14..21773f4a 100644 --- a/src/main/java/org/mvplugins/multiverse/core/commands/RegenCommand.java +++ b/src/main/java/org/mvplugins/multiverse/core/commands/RegenCommand.java @@ -70,6 +70,7 @@ class RegenCommand extends MultiverseCommand { this.playerWorldTeleporter = playerWorldTeleporter; } + @CommandAlias("mvregen") @Subcommand("regen") @CommandPermission("multiverse.core.regen") @CommandCompletion("@mvworlds:scope=loaded @flags:groupName=mvregencommand") diff --git a/src/main/java/org/mvplugins/multiverse/core/commands/ReloadCommand.java b/src/main/java/org/mvplugins/multiverse/core/commands/ReloadCommand.java index 2630de1f..d39641f2 100644 --- a/src/main/java/org/mvplugins/multiverse/core/commands/ReloadCommand.java +++ b/src/main/java/org/mvplugins/multiverse/core/commands/ReloadCommand.java @@ -44,6 +44,7 @@ class ReloadCommand extends MultiverseCommand { this.pluginManager = pluginManager; } + @CommandAlias("mvreload|mvr") @Subcommand("reload") @CommandPermission("multiverse.core.reload") @Description("{@@mv-core.reload.description}") diff --git a/src/main/java/org/mvplugins/multiverse/core/commands/RemoveCommand.java b/src/main/java/org/mvplugins/multiverse/core/commands/RemoveCommand.java index 4888082c..d2ecb942 100644 --- a/src/main/java/org/mvplugins/multiverse/core/commands/RemoveCommand.java +++ b/src/main/java/org/mvplugins/multiverse/core/commands/RemoveCommand.java @@ -48,6 +48,7 @@ class RemoveCommand extends MultiverseCommand { this.playerWorldTeleporter = playerWorldTeleporter; } + @CommandAlias("mvremove") @Subcommand("remove") @CommandPermission("multiverse.core.remove") @CommandCompletion("@mvworlds:scope=both") diff --git a/src/main/java/org/mvplugins/multiverse/core/commands/UnloadCommand.java b/src/main/java/org/mvplugins/multiverse/core/commands/UnloadCommand.java index 42a85aa4..48204f4d 100644 --- a/src/main/java/org/mvplugins/multiverse/core/commands/UnloadCommand.java +++ b/src/main/java/org/mvplugins/multiverse/core/commands/UnloadCommand.java @@ -51,6 +51,7 @@ class UnloadCommand extends MultiverseCommand { this.playerWorldTeleporter = playerWorldTeleporter; } + @CommandAlias("mvunload") @Subcommand("unload") @CommandPermission("multiverse.core.unload") @CommandCompletion("@mvworlds @flags:groupName=mvunloadcommand") diff --git a/src/main/java/org/mvplugins/multiverse/core/commands/VersionCommand.java b/src/main/java/org/mvplugins/multiverse/core/commands/VersionCommand.java index ea3474dd..4b417ad5 100644 --- a/src/main/java/org/mvplugins/multiverse/core/commands/VersionCommand.java +++ b/src/main/java/org/mvplugins/multiverse/core/commands/VersionCommand.java @@ -26,6 +26,7 @@ class VersionCommand extends MultiverseCommand { this.plugin = plugin; } + @CommandAlias("mvversion") @Subcommand("version") @CommandPermission("multiverse.core.version") @Description("{@@mv-core.version.description}")