Command
This page goes over about the Command object.
unregister(): Undefined
unregister(): UndefinedUnregisters the command.
getName(): String
getName(): StringReturns the command name.
getDescription(): String
getDescription(): StringReturns the command description.
handle(type, handler): Undefined
handle(type, handler): UndefinedArgument
Type
Description
type
String
The type of event to handle.
handler
function (args: String[]): Undefined
Callback function.
Adds a handler. The only supported callback for commands is onExecute.
Last updated