Events - S3nS3IW00/JCommands GitHub Wiki
There are different type of events to be able to listen and respond to user actions. Events can triggered due to an error, or just to a valid command usage. Some event belong to command, some other to arguments.
Every event is a CommandEvent
that contains the default information about the case:
- the command itself,
- the sender who has sent the command and
- the responder to be able to respond to the event
Events
Every event has its own listener that gets triggered with an instance of the event that contains the information of the current case.
CommandActionEvent
- triggered on a valid command usageArgumentMismatchEvent
- triggered on an invalid input for an argument