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.commandOnly 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-versionshould match the Minecraft version of your server; this project currently targets version26.1.2dependdeclares the runtime dependencyBetterPlugin(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
BetterPluginindepend dependonly 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.