interface Command
Command interface.
abstract val aliases: Array<String>
All aliases of this command. |
|
abstract val description: String
The description of the command. |
|
abstract val displayName: String
The display name of the command in help messages. |
|
abstract val exampleUsage: String
An example of how to use the command. |
|
open val name: String
The first alias of the command. |
|
abstract val permissions: Permissions
The Permissionss that are needed to execute that command. |
|
abstract val subCommandAssociations: Map<String, Command>
The commands sub-commands. |
|
abstract val usage: String
The usage of the command. |
open fun hasSubCommands(): Boolean |
|
abstract fun process(args: Arguments, context: Context): Unit
The main method of the command. |
|
abstract fun registerSubCommand(subCommand: SubCommand): Unit
Registers the subCommand. |
|
open fun registerSubCommands(vararg subCommands: SubCommand): Unit
Registers the subCommandAssociations. |
abstract class AbstractCommand : Command
Normal command interface. |