To execute an event, the corresponding packet must be sent. You can do this through the API. More information about packets and executors can be found .
How do I create a custom listener for events?
The detailed documentation for listeners can be found .