File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -223,7 +223,7 @@ Update_Server() {
223
223
# Retrieve latest version of Minecraft Bedrock dedicated server
224
224
echo " Checking for the latest version of Minecraft Bedrock server..."
225
225
curl -H " Accept-Encoding: identity" -H " Accept-Language: en" -L -A " Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.33 (KHTML, like Gecko) Chrome/90.0.$RandNum .212 Safari/537.33" -o downloads/version.html https://minecraft.net/en-us/download/server/bedrock/
226
- DownloadURL=$( grep -o ' https://minecraft.azureedge. net/bin-linux/[^"]*' downloads/version.html)
226
+ DownloadURL=$( grep -o ' https://www. minecraft.net/bedrockdedicatedserver /bin-linux/[^"]*' downloads/version.html)
227
227
DownloadFile=$( echo " $DownloadURL " | sed ' s#.*/##' )
228
228
echo " $DownloadURL "
229
229
echo " $DownloadFile "
Original file line number Diff line number Diff line change 96
96
# Download server index.html to check latest version
97
97
98
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
99
- LatestURL=$( grep -o ' https://minecraft.azureedge. net/bin-linux/[^"]*' downloads/version.html)
99
+ LatestURL=$( grep -o ' https://www. minecraft.net/bedrockdedicatedserver /bin-linux/[^"]*' downloads/version.html)
100
100
101
101
LatestFile=$( echo " $LatestURL " | sed ' s#.*/##' )
102
102
116
116
elif [ ! -z " $PinFile " ]; then
117
117
echo " Installing $PinFile "
118
118
DownloadFile=$PinFile
119
- DownloadURL=" https://minecraft.azureedge. net/bin-linux/$PinFile "
119
+ DownloadURL=" https://www. minecraft.net/bedrockdedicatedserver /bin-linux/$PinFile "
120
120
121
121
# Download version of Minecraft Bedrock dedicated server if it's not already local
122
122
if [ ! -f " downloads/$DownloadFile " ]; then
You can’t perform that action at this time.
0 commit comments