Class CommandExecuted


  • public class CommandExecuted
    extends Object
    An event where a command has been used in the chat.

    Commands are triggered by using the "::" prefix before a chat message. The structure of a command is "::[name] [args..]" where "[name]" is the name of the command that is set in the command field, and args are (optional) words entered that are separated by spaces.

    Typing in "::" with no additional characters will treat the message as normal and pass it along to the public chat.

    Note that having a space as the first character after the command trigger will set the command field to an empty string. For example, the message ":: hello world!" will set command to "" and arguments to ["hello", "world!"].

    • Constructor Detail

      • CommandExecuted

        public CommandExecuted()