[PR #148] SMP: remove the richest-3 ranking from the sidebar #149

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

📋 Pull Request Information

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

Base: main ← Head: smp/sidebar-no-richest


📝 Commits (1)

  • be46659 SMP: the sidebar no longer lists the richest players

📊 Changes

4 files changed (+46 additions, -108 deletions)

View changed files

📝 native/smp/README.md (+6 -6)
📝 native/smp/mixins/smp/glue.rs (+1 -9)
📝 native/smp/mixins/smp/smp_board.rs (+36 -89)
📝 native/smp/proof.py (+3 -4)

📄 Description

🤖 Opened by rdbtCVS's AI agent (Claude Code, Claude Opus 5.5), not by rdbtCVS personally.

Why

The staff asked to take the "Richest" top 3 off the scoreboard sidebar. /baltop already ranks the richest for anyone who wants it.

What

  • The sidebar shows the player's own block (name or nickname, Balance, Playtime, Online), a gap, then board.footer. No "Richest" heading and no ranking.
  • board.top is gone from the config. An existing config.json that still has it still loads, and the key is ignored (tested).
  • The board no longer sorts every account. It keeps a balance map and refreshes on the same min_seconds/refresh_seconds rules. A balance change now resends only that player's sidebar, not everyone's.
  • The 0.13 migration keeps only the title part (Richest players → Horizon SMP).
  • README and proof.py are updated (the sidebar now has 6 lines).

There is no version bump: this is one of several SMP PRs opened together, and the maintainer bumps the version at release.

Proof

  • cargo fmt --check, cargo clippy --all-targets --locked -- -D warnings, cargo test --locked: 160 passed (1 ignored).
  • native.py check smp at the pinned Horizon (975c07d): ok.
  • native.py proof smp (a dedicated server with two real clients): "ok": true. Steve's sidebar reads Horizon SMP / Steve / Balance 400 / Playtime 2m / Online 2 / (gap) / play.playhorizon.dev, which is 6 scores. /sidebar off and /sidebar on still work.

🤖 Generated with Claude Code


🔄 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-mods/pull/148 **Author:** [@rdbtCVS](https://github.com/rdbtCVS) **Created:** 11/2/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `smp/sidebar-no-richest` --- ### 📝 Commits (1) - [`be46659`](https://github.com/horizon-rust/horizon-mods/commit/be46659391e518889c3b2ea0d8a09c217aeabf69) SMP: the sidebar no longer lists the richest players ### 📊 Changes **4 files changed** (+46 additions, -108 deletions) <details> <summary>View changed files</summary> 📝 `native/smp/README.md` (+6 -6) 📝 `native/smp/mixins/smp/glue.rs` (+1 -9) 📝 `native/smp/mixins/smp/smp_board.rs` (+36 -89) 📝 `native/smp/proof.py` (+3 -4) </details> ### 📄 Description > 🤖 Opened by rdbtCVS's AI agent (Claude Code, Claude Opus 5.5), not by rdbtCVS personally. ## Why The staff asked to take the "Richest" top 3 off the scoreboard sidebar. `/baltop` already ranks the richest for anyone who wants it. ## What - The sidebar shows the player's own block (name or nickname, Balance, Playtime, Online), a gap, then `board.footer`. No "Richest" heading and no ranking. - `board.top` is gone from the config. An existing `config.json` that still has it still loads, and the key is ignored (tested). - The board no longer sorts every account. It keeps a balance map and refreshes on the same `min_seconds`/`refresh_seconds` rules. A balance change now resends only that player's sidebar, not everyone's. - The 0.13 migration keeps only the title part (`Richest players` → `Horizon SMP`). - README and `proof.py` are updated (the sidebar now has 6 lines). There is no version bump: this is one of several SMP PRs opened together, and the maintainer bumps the version at release. ## Proof - `cargo fmt --check`, `cargo clippy --all-targets --locked -- -D warnings`, `cargo test --locked`: 160 passed (1 ignored). - `native.py check smp` at the pinned Horizon (975c07d): ok. - `native.py proof smp` (a dedicated server with two real clients): `"ok": true`. Steve's sidebar reads `Horizon SMP / Steve / Balance 400 / Playtime 2m / Online 2 / (gap) / play.playhorizon.dev`, which is 6 scores. `/sidebar off` and `/sidebar on` still work. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <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-mods#149
No description provided.