Getting Started
Quick Start
Install a Quantum module, initialize the matching platform adapter, and keep the returned service for your plugin lifecycle.
Alpha release
These examples target 0.1.0-alpha. The Crown Maven repository is coming soon; use a local source checkout in the meantime.
1. Add the dependency
The Quantum BOM keeps module versions aligned. Include only the modules required by your runtime.
repositories { mavenCentral() // Crown Maven repository: Coming Soon}dependencies { implementation(platform("dev.crown.quantum:quantum-bom:0.1.0-alpha")) implementation("dev.crown.quantum:quantum-gui-core") implementation("dev.crown.quantum:quantum-gui-paper")}2. Install the platform adapter
Initialize the library during plugin enable and retain the returned manager or service. Close or uninstall it during plugin disable.
GuiManager gui = PaperGui.install(plugin);Menu menu = gui.menuBuilder() .key("welcome") .title("<gradient:#8B5CF6:#22D3EE>Quantum</gradient>") .rows(3) .policy(MenuPolicy.locked()) .build();menu.open(player);3. Keep platform work at the edge
Place server-specific setup in your bootstrap and keep business logic expressed through Quantum’s neutral interfaces.
public final class QuantumPlugin extends JavaPlugin { private GuiManager gui; @Override public void onEnable() { this.gui = PaperGui.install(this); } @Override public void onDisable() { if (gui != null) gui.close(); }}