Update getpaperserver.sh
This commit is contained in:
parent
73a0560fd0
commit
77319192c2
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
Version=1.17.1
|
||||
# Script by https://github.com/TheRemote/RaspberryPiMinecraft/blob/master/SetupMinecraft.sh
|
||||
Version=$1
|
||||
BuildJSON=$(curl -H "Accept-Encoding: identity" -H "Accept-Language: en" -L -A "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4.212 Safari/537.36" https://papermc.io/api/v2/projects/paper/versions/$Version)
|
||||
Build=$(echo "$BuildJSON" | rev | cut -d, -f 1 | cut -d] -f 2 | rev)
|
||||
Build=$(($Build + 0))
|
||||
|
|
Loading…
Add table
Reference in a new issue