[PR #7279] Add live pause-when-empty management setting #7459

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7279
Author: @TiggerTakkyTTT
Created: 11/2/2026
Status: 🔄 Open

Base: main ← Head: fix/server-management-pause-when-empty


📝 Commits (2)

  • 33d7895 Add live pause timer management setting
  • 56f6cea Merge upstream/main into pause setting PR

📊 Changes

5 files changed (+96 additions, -5 deletions)

View changed files

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

📄 Description

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

What and why

Add live minecraft:serversettings/pause_when_empty_seconds get/set support. The setting now updates the running empty-server pause timer without a restart, persists through server.properties and Horizon's [properties] configuration, and survives restart. Fixes #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

MinecraftServer.tickServer, DedicatedServer.pauseWhenEmptySeconds, DedicatedServer.setPauseWhenEmptySeconds, MinecraftServerSettingsServiceImpl.getPauseWhenEmptySeconds, and MinecraftServerSettingsServiceImpl.setPauseWhenEmptySeconds. Extended tools/test_management_protocol_parity.py to compare reads, writes, invalid input, persistence, and restart behavior.

Other projects' code

none

Self-check

pr_ready --quick --base upstream/main
| Check | Result |
| Python tests | ✅ 612 passed |
| clippy | ✅ |
| tests: horizon-client, horizon-server | ✅ 799 passed |
| doc tests | ✅ 0 passed |
| content root tests | ➖ content root untouched |
| launcher clippy | ➖ launcher untouched |
| launcher tests | ➖ launcher untouched |

🔄 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/7279 **Author:** [@TiggerTakkyTTT](https://github.com/TiggerTakkyTTT) **Created:** 11/2/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/server-management-pause-when-empty` --- ### 📝 Commits (2) - [`33d7895`](https://github.com/horizon-rust/horizon/commit/33d789530fc23560ed01b623a1c2ffd80bd31419) Add live pause timer management setting - [`56f6cea`](https://github.com/horizon-rust/horizon/commit/56f6cea3cd78a308b41bc8e6c00f1c13f1fc8f00) Merge upstream/main into pause setting PR ### 📊 Changes **5 files changed** (+96 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/dedicated.rs` (+14 -2) 📝 `crates/horizon-client/src/game/dedicated/management.rs` (+17 -0) 📝 `crates/horizon-server/src/management_methods.rs` (+33 -0) 📝 `tools/port_map/rest-017.tsv` (+2 -1) 📝 `tools/test_management_protocol_parity.py` (+30 -2) </details> ### 📄 Description > 🤖 Opened by TiggerTakkyTTT's AI agent (Codex, GPT-5.6), not by TiggerTakkyTTT personally. ## What and why Add live `minecraft:serversettings/pause_when_empty_seconds` get/set support. The setting now updates the running empty-server pause timer without a restart, persists through `server.properties` and Horizon's `[properties]` configuration, and survives restart. Fixes #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 `MinecraftServer.tickServer`, `DedicatedServer.pauseWhenEmptySeconds`, `DedicatedServer.setPauseWhenEmptySeconds`, `MinecraftServerSettingsServiceImpl.getPauseWhenEmptySeconds`, and `MinecraftServerSettingsServiceImpl.setPauseWhenEmptySeconds`. Extended `tools/test_management_protocol_parity.py` to compare reads, writes, invalid input, persistence, and restart behavior. ## Other projects' code none ## Self-check ``` pr_ready --quick --base upstream/main | Check | Result | | Python tests | ✅ 612 passed | | clippy | ✅ | | tests: horizon-client, horizon-server | ✅ 799 passed | | doc tests | ✅ 0 passed | | content root tests | ➖ content root untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | ``` <!-- Please tick "Allow edits by maintainers": we push small fixups ourselves instead of a round trip. See CONTRIBUTING.md. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#7459
No description provided.