REST API for executing server commands and monitoring server health from an external admin panel. Exposes an HTTP server with API key authentication that accepts command execution requests and returns server statistics including TPS, MSPT, memory, CPU, GC pauses, disk usage, network I/O, and per-world player/chunk counts.
POST /command-- execute any server command remotely via JSON body ({"command": "..."})GET /commands-- list all registered server commands with their arguments, types, descriptions, and subcommandsGET /health-- unauthenticated health check endpointGET /stats-- detailed server statistics: memory (heap), CPU load, uptime, player count, TPS, MSPT (10s/1m/5m averages, min/max), GC pause tracking, disk usage, network bytes in/out, and per-world info (players, chunks, tick)- API key authentication via
X-API-Keyheader - Configurable port via
HC_API_PORTenvironment variable (default: 7070) - Configurable API key via
HC_API_KEYenvironment variable
None (standalone plugin with no external plugin dependencies).
./gradlew build