A PyFlask web server where you can start a Minecraft server!
This only works on Windows!
- enable-query=true in server.properties
- Create your venv with
python -m venv venv
. Don't forget to activate it! - Install packages with
pip install -r requirements.txt
- Configure the port and script in app.py
- In this case, the script starting the server .jar with the path given. (startRemote.bat for me, which redirects to "../SpigotServer/start.bat" where my MC server start script is)
- Run the server!
python app.py
will run with the port you specified- 'flask run' requires the
FLASK_APP
environment variable set toapp.py
and arguments host and port- Example:
flask run --host=0.0.0.0 port=25566
- Example:
- This uses Dinnerbone's mcstatus PyPi package. You can find more about it here
- This runs on development server. I'm not experienced enough to put it into a production server, but I'm still learning, OK?