Skip to content

Configuration

plugin.yml

Third-party plugins that use BetterPlugin do not need to declare commands in plugin.yml:

yaml
# Wrong: no commands section is needed
commands:
  mycommand:
    permission: myplugin.command

Only the regular fields and the dependency need to be declared:

yml
name: MyPlugin
version: 1.0.0
main: com.example.MyPlugin
api-version: '26.1.2'
depend: [BetterPlugin]
  • api-version should match the Minecraft version of your server; this project currently targets version 26.1.2
  • depend declares the runtime dependency BetterPlugin (for the compile-time dependency, see Integration; JitPack is the recommended way to get it)

Dependency Relationship

text
Consumer plugin
    ↓ depend (declares runtime dependency)
BetterPlugin (core library)

Paper server
  • Consumer plugins must list BetterPlugin in depend
  • depend only guarantees that BetterPlugin loads and enables before the consumer plugin; it does not mean the whole server has finished loading

BetterPlugin's own paper-plugin.yml (Bootstrap / Loader entry points) is described in Building & Contributing.

Powered by VitePress