The record mapping event names to their payload types.
The specific event name.
The game state type.
The name of the event to listen for.
The listener function that will be invoked when the event is emitted.
Optional
priorityThe priority of the listener. Higher priority listeners are executed first. Listeners with the same priority are executed concurrently.
Represents an event registration for a plugin.