Uses of Class
wbs.utils.util.commands.WbsSubcommand
Packages that use WbsSubcommand
Package
Description
Utilities for making tab completable commands in a structural way, as opposed to large command parsing methods.
-
Uses of WbsSubcommand in wbs.utils.util.commands
Subclasses of WbsSubcommand in wbs.utils.util.commandsModifier and TypeClassDescriptionclassAn implementation of WbsSubcommand that simply passes the command to a given subcommand, including tabbing, or provides default usage messages when no args or incorrect args are given.classA specific implementation of WbsSubcommand that's commonly used in plugins that use WbsSettings to track configs.classA specific implementation of WbsSubcommand that's commonly used in plugins that use WbsSettings to track configs.Methods in wbs.utils.util.commands that return WbsSubcommandModifier and TypeMethodDescriptionAdd an alternative label to use instead of label.WbsSubcommand.addAliases(String... aliases) Add multiple aliases for this subcommandWbsSubcommand.setAliases(Set<String> aliases) Sets the list of aliases for this subcommand to the provided value, removing all existing ones.@NotNull WbsSubcommandWbsSubcommand.setPermission(@NotNull String permission) Sets the permission needed to use this subcommandMethods in wbs.utils.util.commands with parameters of type WbsSubcommandModifier and TypeMethodDescriptionvoidWbsCommandNode.addChild(WbsSubcommand subcommand) Adds a child subcommandvoidWbsCommandNode.addChild(WbsSubcommand subcommand, String permission) Adds a child permission and automatically sets the permission for that subcommandWbsCommand.addSubcommand(WbsSubcommand subcommand) Add a subcommand without specifying a permissionWbsCommand.addSubcommand(WbsSubcommand subcommand, String permission) Add a subcommand under a given permissionWbsCommand.setDefaultCommand(WbsSubcommand defaultCommand) Set the command to run if an invalid argument is passed in as the first argument