Add minimal connection example for 26.3 and AuthMe Plugin

This commit is contained in:
Tanner
2026-11-03 19:20:06 +00:00
parent 73f31be274
commit d43533bcfe
4 changed files with 151 additions and 1 deletions
Executable
+19
View File
@@ -0,0 +1,19 @@
#!/bin/bash
set -euo pipefail
cd "$(dirname "$0")"
if ! command -v uv >/dev/null 2>&1; then
echo "Install uv to create the local Python environment." >&2
exit 1
fi
if [ ! -x .venv/bin/python ]; then
uv venv .venv
fi
uv pip install --python .venv/bin/python -e ../pyCraft
export SERVER="${SERVER:-games.protospace.ca}"
export PORT="${PORT:-25565}"
export PLAYER_NAME="${PLAYER_NAME:-mosfet1}"
export GAME_PASSWORD="${GAME_PASSWORD:-mosfetbot}"
exec .venv/bin/python -m mosfet.connect