Automatic python updater for Minecraft Purpur servers. https://willys.zone
Go to file
Willy 304e9f20d4 Added systemd service sample 2023-09-24 02:07:10 -04:00
.gitignore ignore files 2023-08-28 22:34:07 -04:00
LICENSE Initial commit 2023-08-24 02:47:03 -04:00
README.md updated readme for clarity 2023-08-24 21:59:18 -04:00
purpur_updater.py Removed Comment 2023-09-14 02:17:06 -04:00
purpur_updater_config.yml Removed Comment 2023-09-14 02:17:21 -04:00
purpur_updater_sysd.service Added systemd service sample 2023-09-24 02:07:10 -04:00
requirements.txt uploaded files 2023-08-24 21:36:43 -04:00

README.md

purpur_updater

Simple automatic Python updater for Minecraft Purpur servers.

Tested on Windows & Linux.

Install

To install, clone the repository, then move "purpur_updater.py", "purpur_updater_config.yml", and "requirements.txt" into the root directory of your Minecraft server, where the jar would normally be. You can add a service for this to your init system, such as systemd.

git clone https://git.willys.zone/Willy/purpur_updater.git

Install requirements

pip install -r requirements.txt

Configure

vim purpur_updater_config.yml

Run

python3 purpur_updater.py

Note

  1. If 'restart_command' requires sudo or elevated privileges, such as 'sudo systemctl restart my-server', you must run the script with elevated privileges, such as:
sudo python3 purpur_updater.py
  1. The script will download the jar from the directory where the script is being executed. If using systemd, make sure to set WorkingDirectory= to your Minecraft server folder.