Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add legacy aliases to all commands #3095

Merged
merged 2 commits into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class CheckCommand extends MultiverseCommand {
this.destinationsProvider = destinationsProvider;
}

@CommandAlias("mvcheck")
@Subcommand("check")
@CommandPermission("multiverse.core.check")
@CommandCompletion("@players @destinations|@mvworlds")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class ConfigCommand extends MultiverseCommand {
this.config = config;
}

@CommandAlias("mvconfig|mvconf")
@Subcommand("config")
@CommandPermission("multiverse.core.config")
@CommandCompletion("@mvconfigs @mvconfigvalues")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class ConfirmCommand extends MultiverseCommand {
super(commandManager);
}

@CommandAlias("mvconfirm")
@Subcommand("confirm")
@CommandPermission("multiverse.core.confirm")
@Description("{@@mv-core.confirm.description}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
super(commandManager);
this.locationManipulation = locationManipulation;
}

@CommandAlias("mvcoord|mvco")

Check warning on line 33 in src/main/java/org/mvplugins/multiverse/core/commands/CoordinatesCommand.java

View workflow job for this annotation

GitHub Actions / checkstyle / checkstyle

[checkstyle] reported by reviewdog 🐶 'METHOD_DEF' should be separated from previous line. Raw Output: /github/workspace/./src/main/java/org/mvplugins/multiverse/core/commands/CoordinatesCommand.java:33:5: warning: 'METHOD_DEF' should be separated from previous line. (com.puppycrawl.tools.checkstyle.checks.whitespace.EmptyLineSeparatorCheck)
@Subcommand("coordinates|coords|coord|co")
@CommandPermission("multiverse.core.coord")
@Description("{@@mv-core.coordinates.description}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ void onShowDebugCommand(BukkitCommandIssuer issuer) {
this.displayDebugMode(issuer);
}

@CommandAlias("mvdebug")
@Subcommand("debug")
@CommandPermission("multiverse.core.debug")
@CommandCompletion("@range:3")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ class GeneratorsCommand extends MultiverseCommand {
this.generatorProvider = generatorProvider;
}

@CommandAlias("mvgenerators|mvgens")
@Subcommand("generators|gens")
@CommandPermission("multiverse.core.generator")
@CommandCompletion("@flags:groupName=mvgeneratorscommand @flags:groupName=mvgeneratorscommand")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class LoadCommand extends MultiverseCommand {
this.worldManager = worldManager;
}

@CommandAlias("mvload")
@Subcommand("load")
@CommandPermission("multiverse.core.load")
@CommandCompletion("@mvworlds:scope=unloaded")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class RemoveCommand extends MultiverseCommand {
this.playerWorldTeleporter = playerWorldTeleporter;
}

@CommandAlias("mvremove")
@Subcommand("remove")
@CommandPermission("multiverse.core.remove")
@CommandCompletion("@mvworlds:scope=both")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ class UnloadCommand extends MultiverseCommand {
this.playerWorldTeleporter = playerWorldTeleporter;
}

@CommandAlias("mvunload")
@Subcommand("unload")
@CommandPermission("multiverse.core.unload")
@CommandCompletion("@mvworlds @flags:groupName=mvunloadcommand")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class VersionCommand extends MultiverseCommand {
this.plugin = plugin;
}

@CommandAlias("mvversion")
@Subcommand("version")
@CommandPermission("multiverse.core.version")
@Description("{@@mv-core.version.description}")
Expand Down
Loading