ServerAPIv1.1.0

端點Endpoints

每個端點同時掛在兩個路徑。/api/v1/{端點} 是版本化路徑,對外串接請用這個; /api/{端點} 是別名,永遠指向最新版本。

GET /api/v1 會列出目前啟用的所有端點。

端點內容預設需金鑰
/status線上玩家 UUID 與人數、Discord 成員數
/status?history=true附上人數的時間序列(新到舊)
/player/{uuid}名稱、rank、暱稱、遊玩時長、AFK、餘額、Discord
/player/{uuid}?detailed=true展開方塊/物品/實體細項統計
/server版本、MOTD、最大玩家數、遊戲模式✓
/performanceTPS、tick 時間、記憶體、JVM✓
/worlds、/worlds/{name}世界列表與細節✓
/gamerules各世界的 game rule✓
/entities各世界實體統計,排除玩家✓
/spawnlimits生怪上限與間隔✓
/punishments處罰紀錄與統計✓
/bans封鎖名單(UUID 與 IP)✓
/operators管理員名單✓
/whitelist白名單狀態與名單
預設關閉
✓
/plugins已安裝插件列表✓
/placeholders?uuid=&p=解析 PlaceholderAPI 變數✓
/network跨伺服器彙整
預設關閉,需多服 + Redis
✓
/constants靜態列舉參考✓

實體統計刻意排除玩家,以免間接洩漏線上玩家資訊。

未啟用或不存在的端點一律回 404。停用的端點在索引中也不會出現。

Every endpoint is served at two paths. /api/v1/{endpoint} is the versioned path and is what you should use for integrations; /api/{endpoint} is an alias that always points at the latest version.

GET /api/v1 lists every endpoint currently enabled.

EndpointReturnsKey by default
/statusOnline player UUIDs and count, Discord members
/status?history=trueAdds a time series of the counts, newest first
/player/{uuid}Name, rank, nickname, playtime, AFK, balance, Discord
/player/{uuid}?detailed=trueExpands per-block / item / entity stats
/serverVersion, MOTD, max players, game mode✓
/performanceTPS, tick time, memory, JVM✓
/worlds, /worlds/{name}World list and detail✓
/gamerulesGame rules per world✓
/entitiesEntity counts per world, players excluded✓
/spawnlimitsSpawn limits and intervals✓
/punishmentsPunishment records and statistics✓
/bansBan list (UUIDs and IPs)✓
/operatorsOperator list✓
/whitelistWhitelist state and entries
Off by default
✓
/pluginsInstalled plugin list✓
/placeholders?uuid=&p=Resolve PlaceholderAPI placeholders✓
/networkCross-server aggregation
Off by default, needs multi-server + Redis
✓
/constantsStatic enum reference✓

Entity counts deliberately exclude players so they cannot leak who is online.

Disabled or unknown endpoints return 404, and disabled ones do not appear in the index.