Tode
Base: /api/deaths
Spieler-Tode und Todesursachen anzeigen
Handler: DeathHandler
GET
/api/deaths
Tode auflisten
Liste aller aufgezeichneten Tode.
Antwort-Beispiel
[{"player":"Steve","cause":"fall","message":"Steve fell from a high place","position":{"x":100,"y":64,"z":-200},"world":"overworld","timestamp":"2025-01-15T14:30:00Z"}]
cURL
curl http://localhost:5550/api/deaths
GET
/api/deaths/{player}
Spieler-Tode
Tode eines bestimmten Spielers.
Parameter
| Name | Typ | Pflicht | Beschreibung |
|---|---|---|---|
player
|
string | Ja | Spielername |
Antwort-Beispiel
{"player":"Steve","total_deaths":5,"deaths":[{"cause":"fall","message":"Steve fell from a high place","timestamp":"2025-01-15T14:30:00Z"}]}
cURL
curl http://localhost:5550/api/deaths/Steve
GET
/api/deaths/stats
Todes-Statistiken
Auswertung der häufigsten Todesursachen.
Antwort-Beispiel
{"total":150,"by_cause":{"fall":45,"mob":38,"pvp":27,"lava":20,"drown":12,"other":8},"most_deaths_player":{"name":"Steve","deaths":23}}
cURL
curl http://localhost:5550/api/deaths/stats