Is it possible to have my minecraft server update itself?
I am currently playing a server with my friends on the new Minecraft snapshot and I constantly have to update it because they release a new snapshot often. I was wondering if it was possible for every time I start the Minecraft server that it checks for a new version. If there is a new version, it downloads it and restarts the server.
Best Answer
You can use McSvSnapshotUpdater to accomplish this, you can download it here.
Once you download it, you can extract the files in the zip file to the server directory, then every time you launch it, it'll update the file "minecraftsnapshotserver.jar" to the latest version.
If you launch the server through a bat file, you can edit it to look like this, and everytime you launch it, it'll check for updates and download the newest version (if there is any) and will launch that:
title run-minecraft
mcsvsu.exe
java -Xms1024M -Xmx2048M -jar minecraftsnapshotserver.jar nogui
pause
Or if you want to rename the server before running it, (replace newnameoffile with what you want)
title run-minecraft
mcsvsu.exe
if exist newnameoffile.jar del newnameoffile.jar
ren minecraftsnapshotserver.jar newnameoffile.jar
java -Xms1024M -Xmx2048M -jar newnameoffile.jar nogui
pause
Disclaimer: This software is developed, maintained and published by me.
Pictures about "Is it possible to have my minecraft server update itself?"



Does a Minecraft server automatically update?
Do Minecraft servers automatically update? No. Even when using service providers servers will not automatically update. This is because some worlds can become broken or corrupted when updating so make sure to make backups of your files before updating your Minecraft server no matter what you use to run it.Can Minecraft servers update versions?
Just copy the world folder from your server folder to another location (if you named him different: just copy the folder where your world is stored). Make also a copy of the whitelist, banlist and settings file. Then just make a new server folder.How To Update Your Minecraft Server to 1.18.1
More answers regarding is it possible to have my minecraft server update itself?
Answer 2
Sadly, not without some programming. You have to manually go to minecraft.net and download the latest server.
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Markus Winkler, luis gomes, Kevin Ku, Pixabay
