Click or drag to resize
Commands Methods

The Commands type exposes the following members.

Methods
  NameDescription
Public methodStatic memberDoesCommandExist
Checks whether a command currently exists (is registered).
Public methodStatic memberHandleCommand
Handle an entered command. Arguments are parsed and then the callback corresponding to the command is called.
Public methodStatic memberRegisterCommand
Register a console command. The passed callback will be called when the user enters the command in the console. If the same command was previously registered by the same mod, the old one will be updated instead of a new one being registered.
Public methodStatic memberRegisterHelpMessage
Register a help message for your mod to be displayed with the 'help' command. This should give a general overview, to give specific information about a command, use the helpText parameter of RegisterCommand.
Top
See Also