Mutes
Base: /api/mutes
With mutes you keep a list of players who should not write, with a reason, a moderator and an optional expiry. The section suits a moderation panel or a Discord command. The mod manages the list in the file mutes.json. From version 1.17.2 the mod enforces the mute in the game itself: when a muted player writes in chat, the message is dropped and the player sees a notice with the remaining time and the reason. The message does not end up in the chat history either. Commands are not affected. Expired mutes end by themselves, you do not have to lift them. Up to version 1.17.1 the list was only stored and not checked when someone chatted.
/api/mutes
List mutes
Returns all active mutes with player, reason, mutedBy, timestamp (time of the mute as text) and expiresAt (end as a millisecond timestamp, 0 for permanent).
Response Example
[
{
"player": "Steve",
"reason": "spam",
"mutedBy": "Admin",
"durationMinutes": 30,
"expiresAt": 1737003600000
}
]
cURL
curl -X GET 'http://localhost:5550/api/mutes' \
-H 'X-Admin-Token: YOUR_TOKEN'
Internal Behavior
/api/mutes
Mute player
Adds a player to the list of mutes. The response contains success, player, reason and duration_minutes.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
player
|
string | Yes | Player name |
reason
|
string | No | Reason |
muted_by
|
string | No | Moderator, default Server |
duration_minutes
|
integer | No | Minutes, 0 = permanent (default) |
Response Example
{
"success": true,
"player": "Steve",
"reason": "spam",
"duration_minutes": 30
}
cURL
curl -X POST 'http://localhost:5550/api/mutes' \
-H 'X-Admin-Token: YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"player": "Spammer", "reason": "Spam", "muted_by": "Eranio", "duration_minutes": 60}'
Internal Behavior
/api/mutes/{player}
Unmute player
Removes a mute.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
player
|
string | Yes | Player name |
Response Example
{
"success": true,
"player": "Steve"
}
cURL
curl -X DELETE 'http://localhost:5550/api/mutes/Griefer123' \
-H 'X-Admin-Token: YOUR_TOKEN'