On this page
Plugin
This type is used to define the options for registerPlugins().
| Property | Type | Optional | Description |
|---|---|---|---|
| name | string | ❌ | Plugin name. |
| initialize | (client: XPClient) => void | Promise<void> | ❌ | Function to run on plugin initialization. |
| destroy | (client: XPClient) => void | Promise<void> | ✅ | Optional cleanup, run by unregisterPlugins(). |
| requiredVersions | string[] | ✅ | Required versions of simply-xp. |