Skip to content

Commit

Permalink
Update install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
BeastGamer81 authored Apr 28, 2024
1 parent 00f10aa commit 7bdf2b2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ $(tput setaf 6) ## ## ###### #### ## #### ## #
$(tput setaf 6) COPYRIGHT 2023 - 2024 Klovit & https://github.com/beastgamer81
==========================================================================
"
"
}

forceStuffs() {
Expand Down Expand Up @@ -75,7 +75,6 @@ getJavaVersion() {
if [ "${VER_EXISTS}" != "true" ]; then
MINECRAFT_VERSION=${LATEST_VERSION}
fi

MINECRAFT_VERSION_CODE=$(echo "$MINECRAFT_VERSION" | cut -d. -f1-2 | tr -d '.')
if [ "$MINECRAFT_VERSION_CODE" -ge "120" ]; then
sdk install java 21.0.2-tem
Expand Down Expand Up @@ -188,7 +187,7 @@ case $n in
BUILD_NUMBER=$(curl -s https://api.papermc.io/v2/projects/paper/versions/${MINECRAFT_VERSION} | jq -r '.builds' | jq -r '.[-1]')
JAR_NAME=paper-${MINECRAFT_VERSION}-${BUILD_NUMBER}.jar
DOWNLOAD_URL=https://api.papermc.io/v2/projects/paper/versions/${MINECRAFT_VERSION}/builds/${BUILD_NUMBER}/downloads/${JAR_NAME}

shasum "${DOWNLOAD_URL}" > debugshasum.txt 2>&1
curl -o server.jar "${DOWNLOAD_URL}"

display
Expand Down

0 comments on commit 7bdf2b2

Please sign in to comment.