Command

This page goes over about the Command object.

This page goes over the methods of Command object. For more information, please visit onExecute event page.

unregister(): Undefined

Unregisters the command.

getName(): String

Returns the command name.

getDescription(): String

Returns the command description.

handle(type, handler): Undefined

ArgumentTypeDescription

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