[PR #6841] [MERGED] Clear six rest-014 rows: the ban, deop and datapack commands exist #7132

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

📋 Pull Request Information

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

Base: main ← Head: chore/ledger-rest-014


📝 Commits (1)

  • 1166472 Clear six rest-014 rows: the ban, deop and datapack commands exist

📊 Changes

1 file changed (+6 additions, -6 deletions)

View changed files

📝 tools/port_map/rest-014.tsv (+6 -6)

📄 Description

Six tools/port_map/rest-014.tsv rows still said missing for command behaviour current main
has. Each was read in the code, and the row now names where it lives:

  • BanIpCommands.register -> game/commands.rs::Game::execute_command dispatches ban-ip and
    pardon-ip; lan/command_order.rs lists them in the tree. dedicated_lists is vanilla's
    CommandSelection.DEDICATED: on an integrated server these commands do not exist, as vanilla
    has it.
  • BanIpCommands.banIpOrName -> game/commands/profiles.rs::Game::cmd_ip_bans: an address, or a
    name resolved through the guests' own addresses, goes into the ip ban list with its source and
    reason; a target that is neither gets commands.banip.invalid.
  • BanListCommands.register -> the same dispatcher, banlist, banlist.ips and banlist.players
    to cmd_banlist.
  • BanPlayerCommands.register -> the ban arm of cmd_profiles: the profile joins the ban list,
    commands.ban.success is said, and it is kicked.
  • DeOpCommands.register -> the deop arm of cmd_profiles: the op entry goes,
    commands.deop.success is said, and a player left unlisted is kicked.
  • DataPackCommand.createPack -> game/functions.rs::Game::create_pack: the name is checked as a
    path segment, then pack.mcmeta with the pack format, data/ and the folder are written under
    the world's datapacks/.

Proven: python3 tools/port_ledger.py map-check tools/port_map/rest-014.tsv on the build VM -
149 rows, no problems. Each claim is from reading the function named in the row.

Not proven: no in-game check; these are ledger verdicts, not behaviour changes. Rows this sweep
did not settle (SetPlayerIdleTimeoutCommand, ServerPackCommand, SpawnArmorTrimsCommand,
DebugCommand.Tracer.sendSystemMessage) are left as they were.


🔄 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/6841 **Author:** [@MSedgeMC](https://github.com/MSedgeMC) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `chore/ledger-rest-014` --- ### 📝 Commits (1) - [`1166472`](https://github.com/horizon-rust/horizon/commit/1166472c8e3322b5fb2d414c3c45ab1316d6a7a5) Clear six rest-014 rows: the ban, deop and datapack commands exist ### 📊 Changes **1 file changed** (+6 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/rest-014.tsv` (+6 -6) </details> ### 📄 Description Six `tools/port_map/rest-014.tsv` rows still said `missing` for command behaviour current `main` has. Each was read in the code, and the row now names where it lives: - `BanIpCommands.register` -> `game/commands.rs::Game::execute_command` dispatches `ban-ip` and `pardon-ip`; `lan/command_order.rs` lists them in the tree. `dedicated_lists` is vanilla's `CommandSelection.DEDICATED`: on an integrated server these commands do not exist, as vanilla has it. - `BanIpCommands.banIpOrName` -> `game/commands/profiles.rs::Game::cmd_ip_bans`: an address, or a name resolved through the guests' own addresses, goes into the ip ban list with its source and reason; a target that is neither gets `commands.banip.invalid`. - `BanListCommands.register` -> the same dispatcher, `banlist`, `banlist.ips` and `banlist.players` to `cmd_banlist`. - `BanPlayerCommands.register` -> the `ban` arm of `cmd_profiles`: the profile joins the ban list, `commands.ban.success` is said, and it is kicked. - `DeOpCommands.register` -> the `deop` arm of `cmd_profiles`: the op entry goes, `commands.deop.success` is said, and a player left unlisted is kicked. - `DataPackCommand.createPack` -> `game/functions.rs::Game::create_pack`: the name is checked as a path segment, then `pack.mcmeta` with the pack format, `data/` and the folder are written under the world's `datapacks/`. **Proven:** `python3 tools/port_ledger.py map-check tools/port_map/rest-014.tsv` on the build VM - `149 rows, no problems.` Each claim is from reading the function named in the row. **Not proven:** no in-game check; these are ledger verdicts, not behaviour changes. Rows this sweep did not settle (`SetPlayerIdleTimeoutCommand`, `ServerPackCommand`, `SpawnArmorTrimsCommand`, `DebugCommand.Tracer.sendSystemMessage`) are left as they were. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:34:25 +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#7132
No description provided.