EventBuilder
class EventBuilder<T : Event>(val plugin: Plugin, val type: Class<T>, var priority: EventPriority = EventPriority.NORMAL, var ignoreCancelled: Boolean = false)
A DSL builder for handling Bukkit events.
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).
Properties
Functions
Link copied to clipboard
Enables debug mode for this listener.
Link copied to clipboard
Automatically unregisters the listener after a specified number of seconds.
Link copied to clipboard
Filters the event based on the player associated with it (only for PlayerEvent).
Link copied to clipboard
Configures the listener to unregister itself after the first successful execution.
Link copied to clipboard
Configures the listener to unregister itself after a certain number of executions.
Link copied to clipboard
Manually unregisters the listener.