Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 1.35 KB

File metadata and controls

40 lines (29 loc) · 1.35 KB

Python-minecraft-commandline-server-script

This is a simple python script made to manage a minecraft server from the command-line.

Requirements

Installation

Clone the repository or download main.py

git clone https://github.com/suspiciousRaccoon/python-minecraft-commandline-server-script.git

Usage

  1. Modify the following constants at the beginning of the script to match your setup:

    SERVER_START_BAT = "C:\\path\\to\\your\\start.bat"
    SERVER_DIRECTORY = "C:\\path\\to\\your\\server\\directory"
  2. Open a command prompt and navigate to the directory containing main.py.

  3. Run the script using the following command:

    python main.py
  4. The script will present you with a menu of options:

    • [1] Start Server: Starts the Minecraft server if it's not already running.
    • [2] Execute Command: Allows you to send commands to the server.
    • [3] Stop Server: Stops the running Minecraft server.
    • [4] Exit Program: Stops the server (if running) and exits the script.

License

This project is licensed under the MIT License.