Command

abstract class Command(name: String, requirement: CommandSource.() -> Boolean?, executor: CommandSource.(CommandContext) -> Unit?, children: Collection<Command>)

Functions

getChild
Link copied to clipboard
fun getChild(arg: String): Command?

Properties

executor
Link copied to clipboard
val executor: CommandSource.(CommandContext) -> Unit?
name
Link copied to clipboard
val name: String
requirement
Link copied to clipboard
val requirement: CommandSource.() -> Boolean?

Inheritors

ArgumentCommand
Link copied to clipboard
LiteralCommand
Link copied to clipboard