Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Script to update minecraft server to latest version, either snapshot or release
# Can be snapshot or release
# Pull out latest snapshot version
REGEX="(?<=$REVISION\": \").*?[^\\\\](?=\")"
VERSION=`curl -silent "" | grep -Po "$REGEX"`
if [ "$VERSION" = "" ]; then
echo "Invalid Version"; exit
echo "Version: " $VERSION
echo "URL: " $URL
# Download the latest version
curl -O $URL
# Symlink to the server jar
if [ -f "minecraft_server.jar" ]; then
rm minecraft_server.jar
ln -s "minecraft_server.$VERSION.jar" minecraft_server.jar

This comment has been minimized.

Copy link

filiptronicek commented May 20, 2020

Thanks, very useful!
I just would update the version url- is the new one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.