File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ if [ "$?" != 0 ]; then
9595else
9696 # Download server index.html to check latest version
9797
98- 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.$RandNum .212 Safari/537.36" -o downloads/version.html https://www. minecraft.net/en-us/ download/server/bedrock
98+ 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.$RandNum .212 Safari/537.36" -o downloads/version.html https://net-secondary.web. minecraft-services .net/api/v1.0/ download/links
9999 LatestURL=$( grep -o ' https://www.minecraft.net/bedrockdedicatedserver/bin-linux/[^"]*' downloads/version.html)
100100
101101 LatestFile=$( echo " $LatestURL " | sed ' s#.*/##' )
You can’t perform that action at this time.
0 commit comments