/McServerCompanion

little flask-ui for dealing with small minecraft player teams, changeing gamemode, weather or time.

Primary LanguagePython

Minecraft Server Companion

Little Flask-ui for small Minecraft teams, allowing time and weather changes, and teleporting players to each other, using only rcon.

Screenshot1.jpg

Screenshot2.jpg

Requirements

Everything for minecraft of coarse. we're using mc server container and docker-compose

get started

# stop any previous compose service
docker compose down 

# launch the compose service
docker compose up -d 

# install python requirements
pip3 install mcrcon flask apscheduler requests

# add as service
sudo systemctl enable --now ${PWD}/McServerCompanion.service
# verify py RCon  
import socket
from mcrcon import MCRcon
mcr = MCRcon( socket.gethostname(), "changeme_iam_a_password")
mcr.connect()
print(mcr.command("say hi"))
print(mcr.command("list uuids"))

access this UI

http://your-server:25564