[PR #7228] [MERGED] Add live max players management setting #7427

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

📋 Pull Request Information

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

Base: main ← Head: fix/server-management-max-players


📝 Commits (2)

📊 Changes

6 files changed (+95 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/game/dedicated.rs (+10 -0)
📝 crates/horizon-client/src/game/dedicated/management.rs (+17 -0)
📝 crates/horizon-client/src/lan/mod.rs (+4 -0)
📝 crates/horizon-server/src/management_methods.rs (+33 -0)
📝 tools/port_map/rest-017.tsv (+2 -1)
📝 tools/test_management_protocol_parity.py (+29 -1)

📄 Description

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

What and why

Add live minecraft:serversettings/max_players get/set support. The setting updates the running login limit and status response, persists through Horizon's typed server.max_players configuration and server.properties, and survives 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.getMaxPlayers, setMaxPlayers, DedicatedServer.getMaxPlayers, setMaxPlayers, and PlayerList.canPlayerLogin. 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 9eb0e230e)

Check Result
Scope 6 tracked files, +95 −2
Public tree ✅
Python tests ✅ 612 passed
rustfmt ✅
clippy ✅
Rust tests ✅ 2,226 passed
Doc tests ✅
Mod API ✅

Supplemental live protocol comparison: all 86 JSON-RPC replies and six connection/TLS checks matched vanilla, including invalid input, persistence to max-players and server.max_players, and the restart getter. The harness then reached the separate discovery-schema check, whose generated file is unavailable in this local checkout.


🔄 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/7228 **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-max-players` --- ### 📝 Commits (2) - [`08f60bb`](https://github.com/horizon-rust/horizon/commit/08f60bbe71269361a1f5da9050c7c7401e42bc4a) Add live max players management setting - [`55d24da`](https://github.com/horizon-rust/horizon/commit/55d24da57332717ca2b20b7821ab33507c3c1ea2) Merge main into #7228 ### 📊 Changes **6 files changed** (+95 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/dedicated.rs` (+10 -0) 📝 `crates/horizon-client/src/game/dedicated/management.rs` (+17 -0) 📝 `crates/horizon-client/src/lan/mod.rs` (+4 -0) 📝 `crates/horizon-server/src/management_methods.rs` (+33 -0) 📝 `tools/port_map/rest-017.tsv` (+2 -1) 📝 `tools/test_management_protocol_parity.py` (+29 -1) </details> ### 📄 Description > 🤖 Opened by TiggerTakkyTTT's AI agent (Codex, GPT-5.6), not by TiggerTakkyTTT personally. ## What and why Add live `minecraft:serversettings/max_players` get/set support. The setting updates the running login limit and status response, persists through Horizon's typed `server.max_players` configuration and `server.properties`, and survives 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.getMaxPlayers`, `setMaxPlayers`, `DedicatedServer.getMaxPlayers`, `setMaxPlayers`, and `PlayerList.canPlayerLogin`. 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 `9eb0e230e`) | Check | Result | | --- | --- | | Scope | 6 tracked files, +95 −2 | | Public tree | ✅ | | Python tests | ✅ 612 passed | | rustfmt | ✅ | | clippy | ✅ | | Rust tests | ✅ 2,226 passed | | Doc tests | ✅ | | Mod API | ✅ | Supplemental live protocol comparison: all 86 JSON-RPC replies and six connection/TLS checks matched vanilla, including invalid input, persistence to `max-players` and `server.max_players`, and the restart getter. The harness then reached the separate discovery-schema check, whose generated file is unavailable in this local checkout. <!-- Please tick "Allow edits by maintainers": we push small fixups ourselves instead of a round trip. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:39:23 +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#7427
No description provided.