Package-level declarations

event<T> { } — one-line Bukkit listeners bound to a plugin, with priority, ignoreCancelled and Listener.unregister().

Functions

Link copied to clipboard
inline fun <T : Event> event(priority: EventPriority = EventPriority.NORMAL, ignoreCancelled: Boolean = false, crossinline handler: (T) -> Unit): Listener

event registered against the EffectiveSpigot plugin instance (for use outside a plugin class).

Link copied to clipboard
inline fun <T : Event> JavaPlugin.event(priority: EventPriority = EventPriority.NORMAL, ignoreCancelled: Boolean = false, crossinline handler: (T) -> Unit): Listener

Registers a Bukkit listener for event type T with a lambda, inferring the event class from T.

Link copied to clipboard
fun Listener.unregister()

Unregisters all handlers of this listener.