ToolSet / com.zndevs.toolset / ToolSetCommand

ToolSetCommand

abstract class ToolSetCommand : CommandExecutor, Listener, TabCompleter

Constructors

<init> ToolSetCommand()

Properties

enabled var enabled: Boolean

Functions

execute fun execute(sender: CommandSender, command: Command, label: String, args: Array<String>): Boolean
getCommandName abstract fun getCommandName(): String
Gets the name of the command
getRequiredPermission open fun getRequiredPermission(subCommand: String): Permission
Gets the permission required to run the specified subcommand
getSubCommands abstract fun getSubCommands(): Array<SubCommand>
IMPORTANT: Do not recreate subcommands when this is run!
onCommand open fun onCommand(sender: CommandSender, command: Command, label: String, args: Array<String>): Boolean
onTabComplete open fun onTabComplete(sender: CommandSender, command: Command, label: String, args: Array<String>): List<String>
run fun run(sender: CommandSender, command: Command, label: String, args: Array<String>): Boolean
Returns a command’s subcommands. Note: run last in your command executor!
setConfigurationDefaults abstract fun setConfigurationDefaults(defaults: ToolSetConfiguration): ToolSetConfiguration
Sets the default configuration values for this command
setPlugin open fun setPlugin(plugin: JavaPlugin): Unit
Sets the plugin using this command.

Inheritors

SimpleCommand class SimpleCommand : ToolSetCommand
ToolSetCommandCommand class ToolSetCommandCommand : ToolSetCommand
ToolSetMainCommand class ToolSetMainCommand : ToolSetCommand
ToolSetUpdateCommand class ToolSetUpdateCommand : ToolSetCommand