## [1.2.0] — 2026-06-07
### Added
- **Server → page events** — `WebviewApi.emitToPage(player, eventName, jsonPayload)` sends a named event to the player's open page; the page receives it as `CustomEvent("webgui:<name>")` with the payload in `event.detail`
- **Page → server events** — any channel passed to `window.webgui.postToGame` that is not a built-in (`log`, `close`) is forwarded to the server as a packet and fires the new `WebviewServerEvents.PAGE_EVENT` Fabric event
- `window.webgui.on(name, fn)` / `window.webgui.off(name, fn)` injected into every page as convenience wrappers around the DOM event system
- `/webgui reload` — reloads `config/webgui/server.json` from disk without restarting the server; all fields take effect immediately
Developer information
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle.
maven { name = "Modrinth"; url = "https://api.modrinth.com/maven" }