abstract class AbstractCommand : Command
Normal command interface.
AbstractCommand(displayName: String, permissions: Permissions, alias: String, description: String, exampleUsage: String = "") AbstractCommand(displayName: String, permissions: Permissions, aliases: Array<String>, description: String, usage: String = "", exampleUsage: String = "")
Normal command interface. |
open val aliases: Array<String>
the command's aliases |
|
open val description: String
the command's description |
|
open val displayName: String
name for command in help messages |
|
open val exampleUsage: String
the command's example usage |
|
open val permissions: Permissions
the command's Permissions |
|
val subCommandAssociations: MutableMap<String, Command>
The commands sub-commands. |
|
open val usage: String
The usage of the command. |
open val name: String
The first alias of the command. |
open fun registerSubCommand(subCommand: SubCommand): Unit
Registers the subCommand. |
open fun hasSubCommands(): Boolean |
|
abstract fun process(args: Arguments, context: Context): Unit
The main method of the command. |
|
open fun registerSubCommands(vararg subCommands: SubCommand): Unit
Registers the subCommandAssociations. |
abstract class SubCommand : AbstractCommand
Representation of a sub-command. |