Skip to content

Bootstrap API

Reference

DaisyPlatform is the single bootstrap surface for DaisyCore runtime services.

val daisy =
DaisyPlatform.create(plugin) {
text()
placeholders()
items()
scoreboards()
tablists()
commands()
menus()
}
text object

Installs the shared text rendering layer used across commands and UI.

Optional

Installs the shared placeholder registry and resolver layer.

Optional

items object

Enables the shared item builder layer for menu and inventory UI.

Optional

commands object

Enables command discovery, validation, and registration.

Optional

Creates the sidebar runtime service for keyed scoreboard sessions.

Optional

tablists object

Creates the tablist runtime service for header and footer rendering.

Optional

  • DaisyPlatform.create(plugin) { ... } is the canonical DaisyCore bootstrap API
  • enable only the subsystems your plugin actually uses
  • keep the resulting platform handle for the full plugin lifetime
  • call close() during onDisable()
  • treat tablists() as header/footer rendering only in 0.1.0
override fun onDisable() {
daisy.close()
}