Where things live
- Proxy - You run the Duels+ Proxy (separate repo/app). It listens for your Minecraft connection and forwards to Hypixel.
- Plugins directory - The proxy loads plugins from:
~/.duelsplus/plugins/(Linux/macOS:$HOME/.duelsplus/plugins/)- On Windows:
C:\Users\<You>\.duelsplus\plugins\
plugins/ that contains a valid package.json with a duelsplus field is treated as one plugin.
Installing the Plugin API (for development)
Plugins depend on@duelsplus/plugin-api for types and the Plugin base class. At runtime, the proxy provides the module itself (you don’t ship node_modules with your plugin). For local development:
- Build your plugin (e.g.
tsc) and put the compiled output (e.g.index.js) in the plugin directory. - Restart the proxy (or ensure the proxy is running) so it rescans
~/.duelsplus/plugins/and loads your plugin.
Summary
- Create a folder under
~/.duelsplus/plugins/<your-plugin>/. - Add
package.jsonwithmainandduelsplus.id/duelsplus.name. - Install
@duelsplus/plugin-apiin that folder for types. - Write your plugin, build it, and restart the proxy.