example-plugin is a runnable showcase of DreamAPI integration.
- Extending
DreamPlugin - Enabling admin command packs
- Basic startup/shutdown hooks
example-plugin/src/main/java/fr/dreamin/example/ExamplePlugin.javaexample-plugin/src/main/resources/paper-plugin.yml
The example plugin targets the same Paper API line configured in Gradle (26.1.2).
@Override
public void onDreamEnable() {
setBroadcastCmd(true);
setItemRegistryCmd(true);
setDebugCmd(true);
setServiceCmd(true);
}