Aller au contenu
Sur cette page

Plugin

Ce contenu n’est pas encore disponible dans votre langue.

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.