register

Shortcut for registering this listener on the given plugin.

fun Listener.register(plugin: Plugin)

Registers the event with a custom event executor.

Parameters

executor

handles incoming events

ignoreCancelled

if manual cancellation should be ignored

priority

the priority when multiple listeners handle this event

T

the type of event

inline fun <T : Event> Listener.register(plugin: Plugin, priority: EventPriority, ignoreCancelled: Boolean, noinline executor: (Listener, Event) -> Unit)

Registers the SingleListener with its event listener.

Parameters

ignoreCancelled

if manual cancellation should be ignored

priority

the priority when multiple listeners handle this event

inline fun <T : Event> SingleListener<T>.register(plugin: Plugin, priority: EventPriority, ignoreCancelled: Boolean)