Package-level declarations
Types
Link copied to clipboard
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.
Link copied to clipboard
A group of event listeners for easier management (e.g., bulk unregistering).
Functions
Link copied to clipboard
Defines multiple event listeners as a group.
Link copied to clipboard
inline fun <T : Event> Plugin.listenOnce(priority: EventPriority = EventPriority.NORMAL, ignoreCancelled: Boolean = false, noinline action: T.() -> Unit): EventBuilder<T>
Defines an event listener that executes only once.
Link copied to clipboard
inline fun <T : Event> Plugin.on(priority: EventPriority = EventPriority.NORMAL, ignoreCancelled: Boolean = false, noinline block: EventBuilder<T>.() -> Unit): EventBuilder<T>
Defines an event listener using a DSL.