mcserver/instances/forge-1.20.1-survival/runtime/console
JaniSoto 78d2ffeb08 docs: update server specification and config matrix for 1.20.1 survival
- Sync server mod manifest (59 -> 65) and client mod manifest (49 -> 63)
- Remove obsolete references to FLAN, MCDA, MCDW, and Distant Horizons
- Document active custom configurations for AntiXray and Create Addition
- Filter out unchanged default mod configurations verified via container diff
- Update relative docker-compose file location and RCON port mapping in README
2026-08-15 12:07:25 +00:00

17 lines
506 B
Bash
Executable file

#!/bin/bash
CONTAINER="mc_forge_server"
SESSION="mc_console"
unset TMUX
# Clean up old session
tmux kill-session -t $SESSION 2>/dev/null
# Create top window: Live logs
tmux new-session -d -s $SESSION "docker logs -f --tail 100 $CONTAINER"
# Create bottom window: Interactive command prompt via rcon-cli
tmux split-window -v -l 3 -t $SESSION "while true; do read -e -p 'MC> ' cmd; [ -n \"\$cmd\" ] && docker exec -i $CONTAINER rcon-cli \"\$cmd\"; done"
# Open the split console
tmux attach -t $SESSION