Bootstrap API
Bootstrap API
Section titled “Bootstrap API”Recommended default
This is the normal all-systems bootstrap for a plugin that wants the full DaisyCore platform available.
val daisy = DaisyPlatform.create(plugin) { text() placeholders() items() scoreboards() tablists() commands() menus() }Available builder flags
Section titled “Available builder flags”Shared layers
text()placeholders()items()
Feature systems
commands()menus()scoreboards()tablists()
commands()discovers@DaisyCommandSetproviders by scanning your plugin jar at startup.menus(),scoreboards(), andtablists()create the runtime services owned byDaisyPlatform.
Shutdown
Section titled “Shutdown”override fun onDisable() { daisy.close()}