Listener

interface Listener<E>(source)

A callback for an event or a hook observation.

Listeners run on the plugin's worker thread, one at a time. An exception is logged and counts toward quarantine.

Since

api 1

Parameters

<E>

the event type

Functions

Link copied to clipboard
abstract fun on(event: E)
Handles one event.