Plugin
This type is used to define the options for registerPlugins().
| Property | Type | Optional | Description |
|---|---|---|---|
| name | string | β | Plugin name. |
| functions | Record<string, (arg: number | object | string) => Promise<Array<unknown> | boolean | number | object | string | void>>> | β | Functions that overwrite simply-xp ones. |
| initialize | (client: XPClient) => Promise<void> | β | Function to run on plugin initialization. |
| requiredVersions | string[] | β | Required versions of simply-xp. |
info
We support the following types of versioning:
2- Major Version (2.x.x) [Recommended]2.0- Major.Minor Version (2.0.x)2.0.0- Major.Minor.Patch Version (2.0.0)2.0.0-beta.1- Major.Minor.Patch-Prerelease.Build Version
Version compatibility is validated at runtime. It is the plugin author's responsibility to ensure required versions are compatible and accurate.