# PaperMC & Plugins Auto-Updater
This script automates updating your PaperMC server and key plugins (EssentialsX, mcMMO) with detailed logging and safety checks.
## Features
- **PaperMC:**
- Fetches the latest stable PaperMC version and build (above a minimum build number).
- Downloads and replaces the server jar only if a newer stable build is available.
- Backs up the old server jar before updating.
- Tracks the current build in `current_build.txt`.
- **EssentialsX Plugins:**
- Downloads the latest EssentialsX jars (excluding Discord, GeoIP, XMPP variants).
- Backs up old EssentialsX jars before replacing them.
- **mcMMO Plugin:**
- Downloads the latest mcMMO jar.
- Backs up the old mcMMO jar before replacing it.
## Usage
1. Ensure `jq` and `curl` are installed.
2. Place the script in your PaperMC server directory.
3. Run:
`bash paper_updater.sh`
Backups are stored in the `backups` directory and plugin subfolders.
---
**Note:**
- The script must be run with permissions to write to the server and plugins directories.
- Review and adjust paths if your server structure differs.