mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2025-01-24 17:21:29 +01:00
Add legacy aliases
This commit is contained in:
parent
278c51d056
commit
949ba46a16
@ -30,6 +30,7 @@ class CheckCommand extends MultiverseCommand {
|
||||
this.destinationsProvider = destinationsProvider;
|
||||
}
|
||||
|
||||
@CommandAlias("mvcheck")
|
||||
@Subcommand("check")
|
||||
@CommandPermission("multiverse.core.check")
|
||||
@CommandCompletion("@players @destinations|@mvworlds")
|
||||
|
@ -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")
|
||||
|
@ -30,6 +30,7 @@ class ConfigCommand extends MultiverseCommand {
|
||||
this.config = config;
|
||||
}
|
||||
|
||||
@CommandAlias("mvconfig|mvconf")
|
||||
@Subcommand("config")
|
||||
@CommandPermission("multiverse.core.config")
|
||||
@CommandCompletion("@mvconfigs @mvconfigvalues")
|
||||
|
@ -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}")
|
||||
|
@ -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}")
|
||||
|
@ -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")
|
||||
|
@ -36,6 +36,7 @@ class DebugCommand extends MultiverseCommand {
|
||||
this.displayDebugMode(issuer);
|
||||
}
|
||||
|
||||
@CommandAlias("mvdebug")
|
||||
@Subcommand("debug")
|
||||
@CommandPermission("multiverse.core.debug")
|
||||
@CommandCompletion("@range:3")
|
||||
|
@ -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")
|
||||
|
@ -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|*")
|
||||
|
@ -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")
|
||||
|
@ -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")
|
||||
|
@ -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")
|
||||
|
@ -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")
|
||||
|
@ -31,6 +31,7 @@ class LoadCommand extends MultiverseCommand {
|
||||
this.worldManager = worldManager;
|
||||
}
|
||||
|
||||
@CommandAlias("mvload")
|
||||
@Subcommand("load")
|
||||
@CommandPermission("multiverse.core.load")
|
||||
@CommandCompletion("@mvworlds:scope=unloaded")
|
||||
|
@ -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")
|
||||
|
@ -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")
|
||||
|
@ -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}")
|
||||
|
@ -48,6 +48,7 @@ class RemoveCommand extends MultiverseCommand {
|
||||
this.playerWorldTeleporter = playerWorldTeleporter;
|
||||
}
|
||||
|
||||
@CommandAlias("mvremove")
|
||||
@Subcommand("remove")
|
||||
@CommandPermission("multiverse.core.remove")
|
||||
@CommandCompletion("@mvworlds:scope=both")
|
||||
|
@ -51,6 +51,7 @@ class UnloadCommand extends MultiverseCommand {
|
||||
this.playerWorldTeleporter = playerWorldTeleporter;
|
||||
}
|
||||
|
||||
@CommandAlias("mvunload")
|
||||
@Subcommand("unload")
|
||||
@CommandPermission("multiverse.core.unload")
|
||||
@CommandCompletion("@mvworlds @flags:groupName=mvunloadcommand")
|
||||
|
@ -26,6 +26,7 @@ class VersionCommand extends MultiverseCommand {
|
||||
this.plugin = plugin;
|
||||
}
|
||||
|
||||
@CommandAlias("mvversion")
|
||||
@Subcommand("version")
|
||||
@CommandPermission("multiverse.core.version")
|
||||
@Description("{@@mv-core.version.description}")
|
||||
|
Loading…
Reference in New Issue
Block a user