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
unregister(): Undefined
Unregisters the command.
getName(): String
getName(): String
Returns the command name.
getDescription(): String
getDescription(): String
Returns the command description.
handle(type, handler): Undefined
handle(type, handler): Undefined
Argument | Type | Description |
---|---|---|
|
| The type of event to handle. |
|
| Callback function. |
Adds a handler. The only supported callback for commands is onExecute
.
Last updated