AutoRestartBungee

Automaticly Restarts your BungeeCord

16

Quick challenge

How far can you run before the mobs catch you?

AutoRestartBungee

AutoRestartBungee

Daily auto-restart for your BungeeCord proxy – with player-friendly countdown warnings (and optional auto-update integration)

AutoRestartBungee automatically restarts your BungeeCord proxy every day at a fixed time. This ensures regular maintenance, memory cleanup, and stability. Optionally, you can combine it with a custom start script to automatically download and apply the latest BungeeCord version during restarts – keeping your proxy up-to-date effortlessly.

Key Features

- Daily scheduled restart at your chosen time (e.g. 4:00 AM) - Customizable countdown warnings (multiple stages: 15 min, 10 min, 5 min, etc.) - Colored, network-wide broadcast messages (supports Minecraft color codes & hex) - Very lightweight – almost zero performance impact - Simple configuration – no complex commands required - Works with current BungeeCord versions (tested up to 1.21.x)

Installation

1. Download the latest AutoRestartBungee .jar 2. Place it in your BungeeCord `/plugins/` folder 3. Start (or restart) the proxy once → the config file will be created automatically 4. Adjust the restart time and warning messages to your liking

Optional: Enable Auto-Updates via Start Script

While AutoRestartBungee handles the timed restarts and warnings, you can optionally modify your start script (start.sh) to download the latest BungeeCord version each time the proxy restarts. This turns your daily restarts into auto-updates as well:

```bash #!/bin/sh while true do

Remove old jar (if exists)

rm -f BungeeCord.jar

Download the latest BungeeCord build

echo "Downloading latest BungeeCord version..." wget -O BungeeCord.jar https://ci.md-5.net/job/BungeeCord/lastSuccessfulBuild/artifact/bootstrap/target/BungeeCord.jar

Start the proxy

java -Xmx512M -jar BungeeCord.jar

echo "" echo "Press Ctrl+C now if you want to completely stop the server!" echo "Restarting in:" for i in 5 4 3 2 1 do echo "$i..." sleep 1 done echo "Restarting now!" done ```

> Notes: > - The link above always points to the most recent successful build from the official md_5 Jenkins. > - Feel free to adjust memory (`-Xmx`), add GC flags, etc. > - Make the script executable: `chmod +x start.sh`

Why use AutoRestartBungee?

- Reliable daily restarts with fair player warnings → fewer complaints - No external tools or cron jobs needed for scheduling - Easy to extend (add as many warning stages as you want) - Optional integration for auto-updates keeps BungeeCord fresh without extra effort

Enjoy a stable and well-maintained proxy network!

Bug reports, suggestions or questions → feel free to open an issue.

ADS