Color theme

Deaths

Base: /api/deaths

Latest player deaths

Handler: DeathTrackerHandler
GET /api/deaths

List deaths

Returns the last 10 deaths with time, player and cause, plus the total count.

Response Example

{
  "deathCount": 42,
  "recentDeaths": [
    {
      "time": "2026-01-01T00:00:00",
      "player": "Steve",
      "cause": "fall"
    }
  ]
}

cURL

curl -X GET 'http://localhost:5550/api/deaths' \
  -H 'X-Admin-Token: YOUR_TOKEN'

Internal Behavior

Reads Events/player_deaths.log, written by the death tracker system.