Veto

interface Veto(source)

A declarative veto at a HookPoint. Obtain one from veto.

A veto is a flag the stock side reads; no plugin code runs on a stock thread. While it is active, the stock behaviour at that point is blocked. The SDK releases it when the plugin is disabled.

Since

api 1

Functions

Link copied to clipboard
abstract fun isActive(): Boolean
Whether the veto is currently on.
Link copied to clipboard
abstract fun release()
Turns the veto off and releases it.
Link copied to clipboard
abstract fun setActive(active: Boolean)
Turns the veto on or off.