mirror of
https://github.com/zephrynis/PluginDownloader.git
synced 2026-02-18 12:01:56 +00:00
042368fa115cb2c51aa5ae37f8e9010cf2e4787a
Add Dockerfile, main Python script, example config, requirements, and README for a Dockerized Minecraft plugin updater. The updater supports GitHub, Modrinth, and Spigot plugins, automatically checks for updates, downloads new versions, and manages plugin files and state.
Minecraft Plugin Updater
A Dockerized Python script that automatically checks for and downloads updates for Minecraft plugins from GitHub, Modrinth, and Spigot.
Features
- Supports GitHub, Modrinth, and Spigot (via Spiget).
- Automatically deletes old versions upon update.
- Configurable check interval.
- Maintains state to track installed versions.
Usage
-
Create a data directory: Create a folder on your host machine (e.g.,
updater-data). -
Create configuration: Copy
config.example.yamlto your data directory, rename it toconfig.yaml, and edit it with your plugins.check_interval: 3600 plugins: - name: "MyPlugin" source: "github" repo: "user/repo" -
Run with Docker:
docker run -d \ --name plugin-updater \ -v /path/to/updater-data:/data \ minecraft-plugin-updaterPlugins will be downloaded to
/path/to/updater-data/plugins.
Configuration Options
-
GitHub:
source: "github"repo: "owner/repository"asset_regex: (Optional) Regex to match specific release asset names.
-
Modrinth:
source: "modrinth"id: Project ID or Slugloader: (Optional) e.g., "spigot", "paper"game_version: (Optional) e.g., "1.20.1"
-
Spigot:
source: "spigot"id: Resource ID (found in the URL, e.g.,https://www.spigotmc.org/resources/plugin-name.12345/->12345)
Description
A script to automatically check for minecraft plugin updates and download them to a folder
Languages
Python
96.6%
Dockerfile
3.4%