Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 752 Bytes

File metadata and controls

31 lines (21 loc) · 752 Bytes

Module: example-plugin

example-plugin is a runnable showcase of DreamAPI integration.

What it demonstrates

  • Extending DreamPlugin
  • Enabling admin command packs
  • Basic startup/shutdown hooks

Key classes

Runtime notes

The example plugin targets the same Paper API line configured in Gradle (26.1.2).

Practical Example

@Override
public void onDreamEnable() {
  setBroadcastCmd(true);
  setItemRegistryCmd(true);
  setDebugCmd(true);
  setServiceCmd(true);
}