registerCommand

open fun registerCommand(method: Any): CommandTrigger

Registers a new command that will run the method provided.

Passes through multiple arguments:

  • The arguments supplied to the command by the user

Available modifications:

Return

The trigger for additional modification

Parameters

method

The method to call when the event is fired

Sources

Link copied to clipboard