Add rcon.py for running server commands (op, gamemode, etc)

No interactive console exists since lazymc/systemd run the server in
the background, and mcrcon isn't packaged for Debian 13. Plain
Python3 RCON client instead, reads the password straight from
server.properties. setup-server.sh now copies it into mcserver/.
This commit is contained in:
Mykhailo Ivanchenko
2026-10-23 15:55:43 +02:00
parent e510791746
commit 18ef303935
3 changed files with 67 additions and 0 deletions
+3
View File
@@ -66,6 +66,9 @@ done
mkdir -p "$SERVER_DIR/mods"
echo "==> NOTE: copy the same mod jars from your client modpack's mods/ folder into $SERVER_DIR/mods/ (Create, Flywheel, Farmer's Delight + addons, JEI, etc.) before first boot."
cp "$BASE_DIR/rcon.py" "$SERVER_DIR/rcon.py"
echo "==> Copied rcon.py into $SERVER_DIR — use it to run server commands (op, gamemode, etc), see ../HOSTING.md."
# ---- 2. Install lazymc ----
# Pinned to v0.2.10, NOT "latest" — v0.2.11 has a confirmed, still-open upstream
# regression where it never detects a Forge server as ready (timvisee/lazymc#65,