Events

interface Events(source)

Vehicle and hook events. Obtain it from events.

Events are delivered after the fact, asynchronously, on the plugin's worker thread. They are not a way to veto or change stock behaviour; use Hooks for that.

A listener stays registered until the plugin is disabled or its Subscription is cancelled.

Functions

Link copied to clipboard
abstract fun <E> on(type: Class<E>, listener: Listener<in E>): Subscription
Subscribes to events of type.