Interface CommandHandler

    • Method Detail

      • onCommand

        void onCommand​(TextMessageEvent event,
                       Command command)
        Runs this command.
        Parameters:
        event - The event containing the command
        command - The command being run
      • test

        default boolean test​(TextMessageEvent event,
                             Command command)
        Description copied from interface: CommandFilter
        Checks to see if the given event and command test to be true according to this filter.
        Specified by:
        test in interface CommandFilter
        Parameters:
        event - The event to be tested
        command - The command data executed in this event
        Returns:
        True if and only if this filter allows this event and command combination to go ahead.