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
priority
The priority of the event
ignore Cancelled
Whether the event should be ignored if it is already canceled
Type Parameters
T
The type of event that this listener listens to