Class WorkerLoadPluginEvent

Emitted when a plugin is loaded into the server somewhere, either in the worker itself globally, or in a specific room. Use isRoomPlugin to find out programmatically what kind of plugin has been loaded.

If you listen for this event in your plugin, you should probably set the order in your PluginMetadata to "first".

This is called before the onPluginLoad lifecycle method.

Hierarchy

  • RevertableEvent
    • WorkerLoadPluginEvent

Properties

eventName: "worker.loadplugin" = ...
eventName: "worker.loadplugin" = ...

The plugin that has been loaded.

reverted: boolean
room?: Room

The room that this plugin has been loaded into, if the plugin is a RoomPlugin.

Constructors

Methods

  • Returns void

Generated using TypeDoc