[PR #5940] [MERGED] Management protocol: read and set the live server message #6575

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

📋 Pull Request Information

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

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


📝 Commits (3)

  • 4980a15 Add live MOTD methods to the server management protocol
  • 295f6b4 Management protocol: a MOTD set is stored in server.properties, as DedicatedServer.setMotd
  • 87e8e31 Merge main into the server message methods

📊 Changes

4 files changed (+65 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/game/dedicated/management.rs (+21 -0)
📝 crates/horizon-client/src/lan/mod.rs (+3 -0)
📝 crates/horizon-server/src/management_methods.rs (+33 -0)
📝 tools/test_management_protocol_parity.py (+8 -2)

📄 Description

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

What and why

Part of #5147 (roadmap:server-admin). Vanilla management clients can now read and change the server message through minecraft:serversettings/motd and minecraft:serversettings/motd/set. A change updates the message used by live server-list pings immediately and returns the resulting value. This first PR covers only the message setting; the other settings belong in later PRs.

Kind

  • parity: Horizon now does what vanilla 26.3 does

Vanilla reference

MinecraftServerSettingsServiceImpl.getMotd and setMotd read and update DedicatedServer's live MOTD. The existing management-protocol harness compares a read, a set, a second read, an empty set, and a final read against the real vanilla server over TLS.

Other projects' code

None.

Self-check

  • Vanilla versus Horizon: all 42 numbered management-protocol replies matched, including the five new MOTD requests. The harness's separate final schema-file check could not run because this machine's ignored .local/datagen report is missing; the wire comparisons completed and matched.

pr_ready (tools/pr_ready.py --quick --base upstream/main against upstream/main at c1f4a7c19, 24 min 13 s)

Check Result
Scope ✅ 4 committed files, +52 −1
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 515 passed (49 s)
rustfmt ✅ (8 s)
clippy ✅ (3 min 7 s)
tests: horizon-client, horizon-server ✅ 1776 passed (19 min 7 s)
doc tests ✅ 0 passed (1 min 1 s)
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ not run (--quick): CI's parity job picks the affected harnesses
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

Report omits machine identity; scope excludes unrelated untracked local files.


🔄 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/5940 **Author:** [@TiggerTakkyTTT](https://github.com/TiggerTakkyTTT) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/server-management-settings` --- ### 📝 Commits (3) - [`4980a15`](https://github.com/horizon-rust/horizon/commit/4980a15644ebde3c2b74c86ab17e9909035e957f) Add live MOTD methods to the server management protocol - [`295f6b4`](https://github.com/horizon-rust/horizon/commit/295f6b408ef22eaa7de5d4fd0b2b8c0beb0b43c0) Management protocol: a MOTD set is stored in server.properties, as DedicatedServer.setMotd - [`87e8e31`](https://github.com/horizon-rust/horizon/commit/87e8e31222ab65a9ea93e6d39c348bfb61e17d2e) Merge main into the server message methods ### 📊 Changes **4 files changed** (+65 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/dedicated/management.rs` (+21 -0) 📝 `crates/horizon-client/src/lan/mod.rs` (+3 -0) 📝 `crates/horizon-server/src/management_methods.rs` (+33 -0) 📝 `tools/test_management_protocol_parity.py` (+8 -2) </details> ### 📄 Description > 🤖 Opened by TiggerTakkyTTT's AI agent (Codex, GPT-6), not by TiggerTakkyTTT personally. ## What and why Part of #5147 (`roadmap:server-admin`). Vanilla management clients can now read and change the server message through `minecraft:serversettings/motd` and `minecraft:serversettings/motd/set`. A change updates the message used by live server-list pings immediately and returns the resulting value. This first PR covers only the message setting; the other settings belong in later PRs. ## Kind - [x] parity: Horizon now does what vanilla 26.3 does ## Vanilla reference `MinecraftServerSettingsServiceImpl.getMotd` and `setMotd` read and update `DedicatedServer`'s live MOTD. The existing management-protocol harness compares a read, a set, a second read, an empty set, and a final read against the real vanilla server over TLS. ## Other projects' code None. ## Self-check - Vanilla versus Horizon: all 42 numbered management-protocol replies matched, including the five new MOTD requests. The harness's separate final schema-file check could not run because this machine's ignored `.local/datagen` report is missing; the wire comparisons completed and matched. **pr_ready** (`tools/pr_ready.py --quick --base upstream/main` against upstream/main at c1f4a7c19, 24 min 13 s) | Check | Result | | --- | --- | | Scope | ✅ 4 committed files, +52 −1 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 515 passed (49 s) | | rustfmt | ✅ (8 s) | | clippy | ✅ (3 min 7 s) | | tests: horizon-client, horizon-server | ✅ 1776 passed (19 min 7 s) | | doc tests | ✅ 0 passed (1 min 1 s) | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ not run (--quick): CI's parity job picks the affected harnesses | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | Report omits machine identity; scope excludes unrelated untracked local files. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:23:14 +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#6575
No description provided.