Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A helpful script I use to update my jarfile #408

Open
jgrogers opened this issue Oct 31, 2020 · 1 comment
Open

A helpful script I use to update my jarfile #408

jgrogers opened this issue Oct 31, 2020 · 1 comment

Comments

@jgrogers
Copy link

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
Copy link

nichtayl commented Nov 1, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants