Skip to main content

Plugin

This type is used to define the options for registerPlugins().

PropertyTypeOptionalDescription
namestring❌Plugin name.
functionsRecord<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.
requiredVersionsstring[]βœ…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.