[PR #125] Add killc, stuck and rmotd native mods #126

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon-mods/pull/125
Author: @Vakarux12
Created: 11/1/2026
Status: 🔄 Open

Base: main ← Head: add-killc-stuck-rmotd


📝 Commits (1)

  • 15e6e94 Add killc, stuck and rmotd native mods

📊 Changes

3 files changed (+67 additions, -0 deletions)

View changed files

➕ mods/killc.toml (+22 -0)
➕ mods/rmotd.toml (+22 -0)
➕ mods/stuck.toml (+23 -0)

📄 Description

Adds three native mods, ports of adasjusk's server plugins to Horizon's server hook points. They are listed by repository: each version is a GitHub release of the fork, with the .hnmod and its minisign signature.

Id Version Repo .hnmod SHA-256 Hooks
killc 5.1.0 Vakarux12/KillC 4279fae077959db1caa3ef5c834f990f346173ad6fca337d8b094737fcbcd5c5 40
stuck 1.0.0 Vakarux12/Stuck b2be13b9cb3e7a8f811689ec24da3961588cb79384acfcf9b34726a79d81c191 28
rmotd 1.0.0 Vakarux12/RMotd 9adee8b3e5b2279090807ff281a3ce4aebca4d374f399d5158b624bd2781889e 8

All three are tested on Nightly d91cab68ded29bd2b004f7050c468fb98c41a00b with horizon-mixins 0d6b103c70633d8fd9443d8d0acd3aadaacedb06. native.py check passes on the three together, cargo test passes in each horizon/, and cargo horizon-mod check reports "signature verified" for each file. Packaging the forks' horizon/ folders gives the same SHA-256.

Licence. The originals are CC-BY-SA-4.0, so the ports are too. CC-BY-SA-4.0 already lets anyone read and adapt the originals. The port code in horizon/ is my own, and each fork has my grant for Horizon's reviewers in horizon/REVIEW-GRANT.md. The originals are credited and linked on each page, as promise 2 of the mod policy asks.

What reviewers should know

  • They are server-side: native_register_commands, native_perform_command, native_server_tick, plus native_player_died for KillC. Kills and teleports run through native_run_command at the next server tick (kill, spreadplayers, execute in … run tp). KillC checks that a target is an online player before naming them in a console line.
  • Config files are read and written in native_config_dir(): killc.json, stuck.properties, rmotd.json. There is no network access and no other file access.
  • rmotd adds a public support module to crates/horizon-client/src/lan/mod.rs (rmotd_motd::set) that writes the private Shared.motd field, and reads Game.lan from its tick helper. Horizon has no MOTD hook point, so this part is not stable API and can break on a later Nightly.

🔄 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/125 **Author:** [@Vakarux12](https://github.com/Vakarux12) **Created:** 11/1/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `add-killc-stuck-rmotd` --- ### 📝 Commits (1) - [`15e6e94`](https://github.com/horizon-rust/horizon-mods/commit/15e6e94d9294c20ed72069928657f995a7b7f4d5) Add killc, stuck and rmotd native mods ### 📊 Changes **3 files changed** (+67 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `mods/killc.toml` (+22 -0) ➕ `mods/rmotd.toml` (+22 -0) ➕ `mods/stuck.toml` (+23 -0) </details> ### 📄 Description Adds three native mods, ports of [adasjusk](https://github.com/adasjusk)'s server plugins to Horizon's server hook points. They are listed by repository: each version is a GitHub release of the fork, with the `.hnmod` and its minisign signature. | Id | Version | Repo | `.hnmod` SHA-256 | Hooks | |---|---|---|---|---| | `killc` | 5.1.0 | [Vakarux12/KillC](https://github.com/Vakarux12/KillC/tree/main/horizon) | `4279fae077959db1caa3ef5c834f990f346173ad6fca337d8b094737fcbcd5c5` | 40 | | `stuck` | 1.0.0 | [Vakarux12/Stuck](https://github.com/Vakarux12/Stuck/tree/main/horizon) | `b2be13b9cb3e7a8f811689ec24da3961588cb79384acfcf9b34726a79d81c191` | 28 | | `rmotd` | 1.0.0 | [Vakarux12/RMotd](https://github.com/Vakarux12/RMotd/tree/main/horizon) | `9adee8b3e5b2279090807ff281a3ce4aebca4d374f399d5158b624bd2781889e` | 8 | All three are tested on Nightly `d91cab68ded29bd2b004f7050c468fb98c41a00b` with horizon-mixins `0d6b103c70633d8fd9443d8d0acd3aadaacedb06`. `native.py check` passes on the three together, `cargo test` passes in each `horizon/`, and `cargo horizon-mod check` reports "signature verified" for each file. Packaging the forks' `horizon/` folders gives the same SHA-256. **Licence.** The originals are CC-BY-SA-4.0, so the ports are too. CC-BY-SA-4.0 already lets anyone read and adapt the originals. The port code in `horizon/` is my own, and each fork has my grant for Horizon's reviewers in `horizon/REVIEW-GRANT.md`. The originals are credited and linked on each page, as promise 2 of the mod policy asks. **What reviewers should know** - They are server-side: `native_register_commands`, `native_perform_command`, `native_server_tick`, plus `native_player_died` for KillC. Kills and teleports run through `native_run_command` at the next server tick (`kill`, `spreadplayers`, `execute in … run tp`). KillC checks that a target is an online player before naming them in a console line. - Config files are read and written in `native_config_dir()`: `killc.json`, `stuck.properties`, `rmotd.json`. There is no network access and no other file access. - `rmotd` adds a public support module to `crates/horizon-client/src/lan/mod.rs` (`rmotd_motd::set`) that writes the private `Shared.motd` field, and reads `Game.lan` from its tick helper. Horizon has no MOTD hook point, so this part is not stable API and can break on a later Nightly. --- <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#126
No description provided.