Skip to content

Commit

Permalink
Fix Paper URLs again
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRemote committed Feb 8, 2025
1 parent 5646d0d commit 95f898d
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 9 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,11 @@ This can also be done non-persistently with the following ethtool command: <pre>

<h2>Update History</h2>
<ul>
<li>February 8th 2025</li>
<ul>
<li>Updated default version to 1.21.4 (remember, you never need to wait for updates to change Minecraft versions, just use -e Version=1.21.4)</li>
<li>Fixed Paper API URLs yet again</li>
</ul>
<li>December 1st 2024</li>
<ul>
<li>Fixed ViaVersion updates</li>
Expand Down
2 changes: 1 addition & 1 deletion amd64.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ENV BedrockPort=19132
ENV MaxMemory=

# Optional Paper Minecraft Version override
ENV Version="1.21.3"
ENV Version="1.21.4"

# Optional Timezone
ENV TZ="America/Denver"
Expand Down
2 changes: 1 addition & 1 deletion arm64v8.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ ENV BedrockPort=19132
ENV MaxMemory=

# Optional Paper Minecraft Version override
ENV Version="1.21.3"
ENV Version="1.21.4"

# Optional Timezone
ENV TZ="America/Denver"
Expand Down
2 changes: 1 addition & 1 deletion armv7.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ ENV BedrockPort=19132
ENV MaxMemory=

# Optional Paper Minecraft Version override
ENV Version="1.21.3"
ENV Version="1.21.4"

# Optional Timezone
ENV TZ="America/Denver"
Expand Down
2 changes: 1 addition & 1 deletion ppc64le.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ ENV BedrockPort=19132
ENV MaxMemory=

# Optional Paper Minecraft Version override
ENV Version="1.21.3"
ENV Version="1.21.4"

# Optional Timezone
ENV TZ="America/Denver"
Expand Down
2 changes: 1 addition & 1 deletion riscv64.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ ENV BedrockPort=19132
ENV MaxMemory=

# Optional Paper Minecraft Version override
ENV Version="1.21.3"
ENV Version="1.21.4"

# Optional Timezone
ENV TZ="America/Denver"
Expand Down
2 changes: 1 addition & 1 deletion s390x.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ ENV BedrockPort=19132
ENV MaxMemory=

# Optional Paper Minecraft Version override
ENV Version="1.21.3"
ENV Version="1.21.4"

# Optional Timezone
ENV TZ="America/Denver"
Expand Down
6 changes: 3 additions & 3 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,15 +154,15 @@ if [ "$?" != 0 ]; then
echo "Unable to connect to update website (internet connection may be down). Skipping update ..."
else
# Get latest build
BuildJSON=$(curl --no-progress-meter -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)
BuildJSON=$(curl --no-progress-meter -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://api.papermc.io/v2/projects/paper/versions/$Version)
Build=$(echo "$BuildJSON" | rev | cut -d, -f 1 | cut -d']' -f 2 | cut -d'[' -f 1 | rev)
Build=$(($Build + 0))
if [[ $Build != 0 ]]; then
echo "Latest paperclip build found: $Build"
if [ -z "$QuietCurl" ]; then
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" -o /minecraft/paperclip.jar "https://papermc.io/api/v2/projects/paper/versions/$Version/builds/$Build/downloads/paper-$Version-$Build.jar"
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" -o /minecraft/paperclip.jar "https://api.papermc.io/v2/projects/paper/versions/$Version/builds/$Build/downloads/paper-$Version-$Build.jar"
else
curl --no-progress-meter -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" -o /minecraft/paperclip.jar "https://papermc.io/api/v2/projects/paper/versions/$Version/builds/$Build/downloads/paper-$Version-$Build.jar"
curl --no-progress-meter -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" -o /minecraft/paperclip.jar "https://api.papermc.io/v2/projects/paper/versions/$Version/builds/$Build/downloads/paper-$Version-$Build.jar"
fi
else
echo "Unable to retrieve latest Paper build (got result of $Build)"
Expand Down

0 comments on commit 95f898d

Please sign in to comment.