registerPlugins()
Register plugins to extend simply-xp functionality, making this even more powerful.
danger
PLUGINS HAVE FULL CONTROL OVER YOUR PROCESS, ONLY USE WHAT YOU TRUST.
If you're unsure which plugins to use, check out our Plugin Registry.
Parametersβ
| Parameter | Type | Required | Description |
|---|---|---|---|
| plugins | Plugin[] | β | Array of plugins. |
Return valueβ
void- Nothing is returned by this function.
Throwsβ
XpFatal- If one or more plugins are invalid, or an array is not provided.
Exampleβ
const {registerPlugins} = require("simply-xp");
const rateLimits = require("@simply-xp/rate-limits");
registerPlugins([rateLimits])
.catch(console.error); // Returns the error