Add shorthand subcommand aliases

This commit is contained in:
Frank van der Heijden 2020-07-31 01:56:17 +02:00
parent b47db98420
commit f268b098a3
No known key found for this signature in database
GPG key ID: 26DA56488D314D11
2 changed files with 18 additions and 18 deletions

View file

@ -98,7 +98,7 @@ public class CommandServerUtils extends BaseCommand {
* Reloads the configurations of ServerUtils.
* @param sender The sender of the command.
*/
@Subcommand("reload")
@Subcommand("reload|r")
@CommandPermission("serverutils.reload")
@Description("Reloads the ServerUtils plugin.")
public void onReload(CommandSender sender) {
@ -113,7 +113,7 @@ public class CommandServerUtils extends BaseCommand {
* @param commandSender The sender of the command.
* @param config The configuration to reload.
*/
@Subcommand("reloadconfig")
@Subcommand("reloadconfig|rc")
@CommandCompletion("@supportedConfigs")
@CommandPermission("serverutils.reloadconfig")
@Description("Reloads individual Server configurations.")
@ -148,7 +148,7 @@ public class CommandServerUtils extends BaseCommand {
* @param commandSender The sender of the command.
* @param jarFile The filename of the plugin in the plugins/ directory.
*/
@Subcommand("loadplugin")
@Subcommand("loadplugin|lp")
@CommandCompletion("@pluginJars")
@CommandPermission("serverutils.loadplugin")
@Description("Loads the specified jar file as a plugin.")
@ -170,7 +170,7 @@ public class CommandServerUtils extends BaseCommand {
* @param commandSender The sender of the command.
* @param pluginName The plugin name.
*/
@Subcommand("unloadplugin")
@Subcommand("unloadplugin|up")
@CommandCompletion("@plugins")
@CommandPermission("serverutils.unloadplugin")
@Description("Disables and unloads the specified plugin.")
@ -193,7 +193,7 @@ public class CommandServerUtils extends BaseCommand {
* @param sender The sender of the command.
* @param pluginName The plugin name.
*/
@Subcommand("reloadplugin")
@Subcommand("reloadplugin|rp")
@CommandCompletion("@plugins")
@CommandPermission("serverutils.reloadplugin")
@Description("Reloads a specified plugin.")
@ -215,7 +215,7 @@ public class CommandServerUtils extends BaseCommand {
* @param sender The sender of the command.
* @param pluginName The plugin name.
*/
@Subcommand("enableplugin")
@Subcommand("enableplugin|ep")
@CommandCompletion("@plugins")
@CommandPermission("serverutils.enableplugin")
@Description("Enables the loaded plugin.")
@ -229,7 +229,7 @@ public class CommandServerUtils extends BaseCommand {
* @param sender The sender of the command.
* @param pluginName The plugin name.
*/
@Subcommand("disableplugin")
@Subcommand("disableplugin|dp")
@CommandCompletion("@plugins")
@CommandPermission("serverutils.disableplugin")
@Description("Disables the specified plugin.")
@ -243,7 +243,7 @@ public class CommandServerUtils extends BaseCommand {
* @param sender The sender of the command.
* @param pluginName The plugin name.
*/
@Subcommand("watchplugin")
@Subcommand("watchplugin|wp")
@CommandCompletion("@plugins")
@CommandPermission("serverutils.watchplugin")
@Description("Watches the specified plugin for changes.")
@ -258,7 +258,7 @@ public class CommandServerUtils extends BaseCommand {
* @param sender The sender of the command.
* @param pluginName The plugin name.
*/
@Subcommand("unwatchplugin")
@Subcommand("unwatchplugin|uwp")
@CommandCompletion("@plugins")
@CommandPermission("serverutils.watchplugin")
@Description("Stops watching the specified plugin for changes.")
@ -272,7 +272,7 @@ public class CommandServerUtils extends BaseCommand {
* @param commandSender The sender of the command.
* @param pluginName The plugin name.
*/
@Subcommand("plugininfo")
@Subcommand("plugininfo|pi")
@CommandCompletion("@plugins")
@CommandPermission("serverutils.plugininfo")
@Description("Shows information about the specified plugin.")
@ -341,7 +341,7 @@ public class CommandServerUtils extends BaseCommand {
* @param commandSender The sender of the command.
* @param command The command to lookup.
*/
@Subcommand("commandinfo")
@Subcommand("commandinfo|ci")
@CommandCompletion("@commands")
@CommandPermission("serverutils.commandinfo")
@Description("Shows information about the specified command.")