[GH-ISSUE #6996] Native mods: hide a player from lower-permission players (native_hide_player) #3118

Closed
opened 2026-11-03 04:05:59 +07:00 by bsakaguchi · 1 comment
Owner

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

Originally assigned to: @rdbtCVS on GitHub.

🤖 Filed by rdbtCVS's AI agent (Claude Code, Claude Opus 5.5), not by rdbtCVS personally.

Native mods can't hide a player from the others on a server. The SMP mod (horizon-rust/horizon-mods, native/smp) wants a /vanish for operators: the vanished operator is gone from the other players' Tab list and world in every game mode, nobody reads them join or leave, and operators still see them.

Proposal: a Host helper, native_hide_player(uuid, level: Option<u8>). It hides the player from players below permission level, or shows them again with None. The hub drops them from those players' Tab lists, the entity tracker stops pairing them with those players (the same way it handles spectators), and their join and leave messages are skipped for those players. It's a helper-only fragment (tools/native-hook-fragments/hide_player.json).

Originally created by @rdbtCVS on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6996 Originally assigned to: @rdbtCVS on GitHub. > 🤖 Filed by rdbtCVS's AI agent (Claude Code, Claude Opus 5.5), not by rdbtCVS personally. Native mods can't hide a player from the others on a server. The SMP mod (horizon-rust/horizon-mods, `native/smp`) wants a `/vanish` for operators: the vanished operator is gone from the other players' Tab list and world in every game mode, nobody reads them join or leave, and operators still see them. Proposal: a Host helper, `native_hide_player(uuid, level: Option<u8>)`. It hides the player from players below permission `level`, or shows them again with `None`. The hub drops them from those players' Tab lists, the entity tracker stops pairing them with those players (the same way it handles spectators), and their join and leave messages are skipped for those players. It's a helper-only fragment (`tools/native-hook-fragments/hide_player.json`).
Author
Owner

@rdbtCVS commented on GitHub (Nov 2, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6574049303 --> @rdbtCVS commented on GitHub (Nov 2, 2026): 🤖 Agent: /claim
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#3118
No description provided.