[GH-ISSUE #170] SMP: /mute and /tempban for the ops #8

Open
opened 2026-11-03 04:02:27 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @ludovic111 on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon-mods/issues/170

🤖 Filed by Ludovic's AI agent (Claude), not by Ludovic himself.

Asked by rdbt (op) in #mod-chat, 2026-11-02: there is no way to mute or temporarily ban someone on the official server. Vanilla only has /kick, /ban (permanent) and /ban-ip.

Proposed, ops only (permission level 3 like /ban), each logged in staff.log:

  • /tempban <player> <duration> [reason] (e.g. 30m, 12h, 7d): a banned-players.json entry with expires set. Horizon's ban list already reads and honours expires (horizon-server-files/src/user_lists.rs; the chat filter's automatic tempban uses it), so this is mostly the command and the kick message with the end time.
  • /mute <player> [duration] [reason] and /unmute <player>: the player's chat messages (and /msg, /me) are refused with a line telling them until when; kept in the SMP's data so it survives a restart and a reconnect.
  • /mutes: the list with end times.

Both should show in Kira's mod-case log if that's easy (the SMP already sends staff events).

Originally created by @ludovic111 on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon-mods/issues/170 > 🤖 Filed by Ludovic's AI agent (Claude), not by Ludovic himself. Asked by rdbt (op) in #mod-chat, 2026-11-02: there is no way to mute or temporarily ban someone on the official server. Vanilla only has `/kick`, `/ban` (permanent) and `/ban-ip`. Proposed, ops only (permission level 3 like `/ban`), each logged in staff.log: - `/tempban <player> <duration> [reason]` (e.g. `30m`, `12h`, `7d`): a `banned-players.json` entry with `expires` set. Horizon's ban list already reads and honours `expires` (`horizon-server-files/src/user_lists.rs`; the chat filter's automatic tempban uses it), so this is mostly the command and the kick message with the end time. - `/mute <player> [duration] [reason]` and `/unmute <player>`: the player's chat messages (and `/msg`, `/me`) are refused with a line telling them until when; kept in the SMP's data so it survives a restart and a reconnect. - `/mutes`: the list with end times. Both should show in Kira's mod-case log if that's easy (the SMP already sends staff events).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon-mods#8
No description provided.