EventBuilder

constructor(plugin: Plugin, type: Class<T>, priority: EventPriority = EventPriority.NORMAL, ignoreCancelled: Boolean = false)

Parameters

T

The type of the event.

plugin

The plugin instance.

type

The class of the event.

priority

The priority of the event listener (default: NORMAL).

ignoreCancelled

Whether to ignore cancelled events (default: false).