EventGroup

class EventGroup(val plugin: Plugin)

A group of event listeners for easier management (e.g., bulk unregistering).

Constructors

Link copied to clipboard
constructor(plugin: Plugin)

Properties

Link copied to clipboard
Link copied to clipboard
val plugin: Plugin

Functions

Link copied to clipboard
inline fun <T : Event> listenOnce(priority: EventPriority = EventPriority.NORMAL, ignoreCancelled: Boolean = false, noinline action: T.() -> Unit): EventBuilder<T>

Registers a one-time event listener within this group.

Link copied to clipboard
inline fun <T : Event> on(priority: EventPriority = EventPriority.NORMAL, ignoreCancelled: Boolean = false, noinline block: EventBuilder<T>.() -> Unit): EventBuilder<T>

Registers an event listener within this group.

Link copied to clipboard

Unregisters all event listeners in this group.