Class: ChatCommandHandler

ChatCommandHandler()

The purpose of this class is to test if a given textual input of the current player is not a chat message to be sent but a command to be performed locally or on the server, and if so perform it.

Constructor

new ChatCommandHandler()

Source:

Members

ChatCommands

Commands that can be entered by clients via chat input. A handler returns true if the user input should be sent as a chat message.
Source:

ChatCommandTags

Color to highlight chat commands in the explanation.
Source:

Methods

handleChatCommand() → {boolean}

Source:
Returns:
true if the input was successfully parsed as a chat command.
Type
boolean