Automaticly Restarts your BungeeCord
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.
/plugins/ folder 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:
#!/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
Enjoy a stable and well-maintained proxy network!
Bug reports, suggestions or questions → feel free to open an issue.