Skip to main content

Custom Endpoints

ZyveraWeb comes with a set of built-in HTTP endpoints. These are registered internally and are not part of a public API.

Available Endpoints

Path Platform Description
/api/players All platforms Returns comma-separated list of online player names
/api/placeholder Bukkit only Resolves PlaceholderAPI placeholders
/ All platforms Main web content (static files, virtual hosts, Node.js)

Players Endpoint

GET /api/players

Returns the names of all currently online players as a comma-separated plain text response. Available on Bukkit, Velocity, and BungeeCord.

Alice,Bob,Charlie

PlaceholderAPI Endpoint

GET /api/placeholder (Bukkit only)

Resolves PlaceholderAPI placeholders via HTTP. See the PlaceholderAPI page for details.

Internal Architecture

The endpoint system uses com.sun.net.httpserver.HttpHandler internally. This is an implementation detail and is not exposed as a public API for other plugins. Custom endpoint registration is not supported. To add functionality, use a Node.js site (with GraalJS) or a reverse proxy to an external service. |