Skip to content

Commit 347e961

Browse files
authored
Merge pull request #143 from M-Taylor40/M-Taylor40-patch-1
Update SetupMinecraft.sh
2 parents a9ff4f9 + 27647ec commit 347e961

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

SetupMinecraft.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ Update_Server() {
223223
# Retrieve latest version of Minecraft Bedrock dedicated server
224224
echo "Checking for the latest version of Minecraft Bedrock server..."
225225
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)
227227
DownloadFile=$(echo "$DownloadURL" | sed 's#.*/##')
228228
echo "$DownloadURL"
229229
echo "$DownloadFile"

start.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ else
9696
# Download server index.html to check latest version
9797

9898
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)
100100

101101
LatestFile=$(echo "$LatestURL" | sed 's#.*/##')
102102

@@ -116,7 +116,7 @@ else
116116
elif [ ! -z "$PinFile" ]; then
117117
echo "Installing $PinFile"
118118
DownloadFile=$PinFile
119-
DownloadURL="https://minecraft.azureedge.net/bin-linux/$PinFile"
119+
DownloadURL="https://www.minecraft.net/bedrockdedicatedserver/bin-linux/$PinFile"
120120

121121
# Download version of Minecraft Bedrock dedicated server if it's not already local
122122
if [ ! -f "downloads/$DownloadFile" ]; then

0 commit comments

Comments
 (0)