[PR #7191] [MERGED] Add live allowlist management settings #7401

Closed
opened 2026-11-03 06:38:58 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7191
Author: @TiggerTakkyTTT
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: fix/server-management-allowlist


📝 Commits (2)

📊 Changes

5 files changed (+164 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/game/dedicated.rs (+7 -0)
📝 crates/horizon-client/src/game/dedicated/management.rs (+40 -0)
📝 crates/horizon-server/src/management_methods.rs (+58 -0)
📝 tools/port_map/rest-017.tsv (+3 -1)
📝 tools/test_management_protocol_parity.py (+56 -1)

📄 Description

🤖 Opened by TiggerTakkyTTT's AI agent (Codex, GPT-5.6), not by TiggerTakkyTTT personally.

What and why

Add live minecraft:serversettings/use_allowlist and minecraft:serversettings/enforce_allowlist get/set support. The settings update the running server, persist through Horizon's typed server.toml fields and server.properties, kick unlisted players through the existing path, and match vanilla after restart. Part of #6597.

Kind

  • parity: Horizon now does what vanilla 26.3 does
  • bug: a crash or a breakage
  • perf: faster, or less memory
  • feature: something new for players (listed under New in the release notes)
  • extra: Horizon-only, off by default
  • tooling: tools, CI, tests, harnesses
  • docs

Vanilla reference

MinecraftServerSettingsServiceImpl.isUsingWhitelist, setUsingWhitelist, isEnforceWhitelist, setEnforceWhitelist, DedicatedServer.setUsingWhitelist, DedicatedServer.setEnforceWhitelist, and MinecraftServer.kickUnlistedPlayers. Extended tools/test_management_protocol_parity.py against vanilla 26.3.

Other projects' code

None.

Self-check

pr_ready (tools/pr_ready.py --quick --base upstream/main, against upstream/main at 693aa8482, 7 min 3 s)

Check Result
Scope ✅ 5 files, +164 −2
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 612 passed (1 min 0 s)
rustfmt ✅ (6 s)
clippy ✅ (1 min 9 s)
tests: horizon-client, horizon-server ✅ 793 passed (1 min 52 s)
doc tests ✅ (2 min 4 s)
mod API up to date ✅ (52 s)
Parity ➖ not run by --quick; CI selects the affected harnesses

Supplemental live protocol comparison: all 86 JSON-RPC replies and six connection/TLS checks matched vanilla, including invalid inputs, saved white-list and enforce-whitelist values, Horizon's typed config fields, and both getters after restart. The harness reached its separate discovery-schema check, which could not run because that generated schema artifact is absent locally.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/7191 **Author:** [@TiggerTakkyTTT](https://github.com/TiggerTakkyTTT) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/server-management-allowlist` --- ### 📝 Commits (2) - [`873ab77`](https://github.com/horizon-rust/horizon/commit/873ab776867878a343677fb071d6e50e363a1f7c) Add live allowlist management settings - [`da4e5bb`](https://github.com/horizon-rust/horizon/commit/da4e5bb6042669e56cea5dfa187b0ea538e1a235) Merge main into #7191 ### 📊 Changes **5 files changed** (+164 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/dedicated.rs` (+7 -0) 📝 `crates/horizon-client/src/game/dedicated/management.rs` (+40 -0) 📝 `crates/horizon-server/src/management_methods.rs` (+58 -0) 📝 `tools/port_map/rest-017.tsv` (+3 -1) 📝 `tools/test_management_protocol_parity.py` (+56 -1) </details> ### 📄 Description > 🤖 Opened by TiggerTakkyTTT's AI agent (Codex, GPT-5.6), not by TiggerTakkyTTT personally. ## What and why Add live `minecraft:serversettings/use_allowlist` and `minecraft:serversettings/enforce_allowlist` get/set support. The settings update the running server, persist through Horizon's typed `server.toml` fields and `server.properties`, kick unlisted players through the existing path, and match vanilla after restart. Part of #6597. ## Kind - [x] parity: Horizon now does what vanilla 26.3 does - [ ] bug: a crash or a breakage - [ ] perf: faster, or less memory - [ ] feature: something new for players (listed under New in the release notes) - [ ] extra: Horizon-only, off by default - [ ] tooling: tools, CI, tests, harnesses - [ ] docs ## Vanilla reference `MinecraftServerSettingsServiceImpl.isUsingWhitelist`, `setUsingWhitelist`, `isEnforceWhitelist`, `setEnforceWhitelist`, `DedicatedServer.setUsingWhitelist`, `DedicatedServer.setEnforceWhitelist`, and `MinecraftServer.kickUnlistedPlayers`. Extended `tools/test_management_protocol_parity.py` against vanilla 26.3. ## Other projects' code None. ## Self-check **pr_ready** (`tools/pr_ready.py --quick --base upstream/main`, against upstream/main at `693aa8482`, 7 min 3 s) | Check | Result | | --- | --- | | Scope | ✅ 5 files, +164 −2 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 612 passed (1 min 0 s) | | rustfmt | ✅ (6 s) | | clippy | ✅ (1 min 9 s) | | tests: horizon-client, horizon-server | ✅ 793 passed (1 min 52 s) | | doc tests | ✅ (2 min 4 s) | | mod API up to date | ✅ (52 s) | | Parity | ➖ not run by `--quick`; CI selects the affected harnesses | Supplemental live protocol comparison: all 86 JSON-RPC replies and six connection/TLS checks matched vanilla, including invalid inputs, saved `white-list` and `enforce-whitelist` values, Horizon's typed config fields, and both getters after restart. The harness reached its separate discovery-schema check, which could not run because that generated schema artifact is absent locally. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:38:58 +07:00
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#7401
No description provided.