Skip to main content

Module plugin

Module plugin 

Source

Modules§

background
Work that must not hold up the plugin’s hooks. A plugin runs one call at a time, so a slow lookup in login would keep chat waiting past its deadline. Instead the hook defers its answer, hands the lookup to a background worker and returns; the answer follows from job-done.
bus
The message bus.
log
Rift’s log stream, prefixed with the plugin name.
meta
permissions
Rift’s permission store: user nodes and group memberships.
players
The joined players. target is a name, a UUID or a connection id.
servers
Managed servers, through the same rift.control.* operations as the bus. Results are the control service’s JSON replies.
store
The durable key-value store. Namespaces are prefixed with plugin.<name>. for persistent plugins.
timers
Timers fire through the timer export with the returned handle.
types