Skip to content

A PyFlask web server where you can start a Minecraft server!

Notifications You must be signed in to change notification settings

KevinIsMyName/MCWebStart

Repository files navigation

MCWebStart

Description

A PyFlask web server where you can start a Minecraft server!

Quick Start

This only works on Windows!

  1. enable-query=true in server.properties
  2. Create your venv with python -m venv venv. Don't forget to activate it!
  3. Install packages with pip install -r requirements.txt
  4. 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)
  5. Run the server!
    • python app.py will run with the port you specified
    • 'flask run' requires the FLASK_APP environment variable set to app.py and arguments host and port
      • Example: flask run --host=0.0.0.0 port=25566

Notes:

  • 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?

About

A PyFlask web server where you can start a Minecraft server!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published