A helpful script I use to update my jarfile
jgrogers opened this issue · 1 comments
jgrogers commented
I play Minecraft infrequently enough that every time I try to connect to my server, the jarfile is out of date. I wrote a little script to streamline the updating process. Here my server is called "world" and my jargroup is called "latest". Please feel free to use this however you please.
lynx -source https://minecraft.net/en-us/download/server | grep "launcher.mojang.com" | cut -d '"' -f2 | xargs sudo msm jargroup changeurl latest
sudo msm world jar latest
sudo msm world stop
sudo msm world start
nichtayl commented
wget -qO- https://minecraft.net/en-us/download/server | grep "launcher.mojang.com" | cut -d '"' -f2 | xargs sudo msm jargroup changeurl latest
should also work if you don't want to install lynx