KListener
abstract class KListener<T : Event>(val priority: EventPriority, val ignoreCancelled: Boolean) : Listener(source)
This class is our own custom Listener class, which is used to handle events more easily
Parameters
T
The type of event that this listener listens to
priority
The priority of the event
ignore Cancelled
Whether the event should be ignored if it is already canceled