CommandManager()

Contains all active in game commands

new CommandManager()

Methods

add(command)

Add the command and set up aliases

Parameters:
Name Type Description
command Command

find(search, returnAlias) → {Command}

Find a command from a partial name

Parameters:
Name Type Description
search string
returnAlias boolean

true to also return which alias of the command was used

Returns:
Command

get(command) → {Command}

Get command by name

Parameters:
Name Type Description
command string
Returns:
Command

remove(command)

Parameters:
Name Type Description
command Command