Mutes

Base: /api/mutes

Manage player mutes

Handler: MuteHandler
GET /api/mutes

Mute List

List of all muted players.

Response Example

[{"player":"Spammer99","reason":"Spam","muted_by":"Admin","muted_at":"2025-01-15T10:30:00Z","expires":"2025-01-16T10:30:00Z"}]

cURL

curl http://localhost:5550/api/mutes
POST /api/mutes/add

Mute Player

Mutes a player.

Request Body

Field Type Required Description
player string Yes Player name
reason string No Mute reason
duration string No Duration (e.g. "1h", "30m")

Response Example

{"success":true,"message":"Player Spammer99 has been muted"}

cURL

curl -X POST http://localhost:5550/api/mutes/add \
  -H 'Content-Type: application/json' \
  -d '{"player":"Spammer99","reason":"Spam","duration":"1h"}'
DELETE /api/mutes/{player}

Unmute Player

Removes a player's mute.

Parameters

Name Type Required Description
player string Yes Player name

Response Example

{"success":true,"message":"Player Spammer99 has been unmuted"}

cURL

curl -X DELETE http://localhost:5550/api/mutes/Spammer99