diff --git a/.github/workflows/startup.yml b/.github/workflows/startup.yml index b5de3a5..fad1e08 100644 --- a/.github/workflows/startup.yml +++ b/.github/workflows/startup.yml @@ -23,7 +23,7 @@ jobs: run: TERM="xterm" - name: setup server - run: chmod +x setup.sh && ./setup.sh --name minecraft --proceed true --version 1.20.2 --port 25565 --eula true --remove true --start false + run: chmod +x setup.sh && ./setup.sh --name minecraft --proceed true --version 1.20.4 --port 25565 --eula true --remove true --start false - name: startup server run: cd minecraft && chmod +x start.sh && ./start.sh --verbose diff --git a/readme.md b/readme.md index 1b0f4b6..69ab8c0 100644 --- a/readme.md +++ b/readme.md @@ -32,7 +32,7 @@ This will start the script in interactive mode and you must answer questions If you like a straight one-liner which is non-interactive you may use the setup arguments like this ``` -./setup.sh --name minecraft --proceed true --version 1.20.2 --port 25565 --eula true --remove true --start true +./setup.sh --name minecraft --proceed true --version 1.20.4 --port 25565 --eula true --remove true --start true ``` ## serverstart diff --git a/setup.sh b/setup.sh index 8fc0711..b0ee037 100644 --- a/setup.sh +++ b/setup.sh @@ -333,11 +333,11 @@ serverDirectory=$(pwd) # download java executable from mojang if [[ ${versionArg} == false ]]; then PS3="$(date +"%H:%M:%S") prompt: which server version would you like to install? " - versions=("1.20.2" "1.19.4" "1.18.2" "1.17.1") + versions=("1.20.4" "1.19.4" "1.18.2" "1.17.1") select version in "${versions[@]}"; do case ${version} in - "1.20.2") - FetchServerFile "5b868151bd02b41319f54c8d4061b8cae84e665c" + "1.20.4") + FetchServerFile "8dd1a28015f51b1803213892b50b7b4fc76e594d" break ;; "1.19.4") @@ -360,8 +360,8 @@ if [[ ${versionArg} == false ]]; then elif [[ ${versionArg} == true ]]; then version="${versionVal}" case ${version} in - "1.20.2") - FetchServerFile "5b868151bd02b41319f54c8d4061b8cae84e665c" + "1.20.4") + FetchServerFile "8dd1a28015f51b1803213892b50b7b4fc76e594d" ;; "1.19.4") FetchServerFile "8f3112a1049751cc472ec13e397eade5336ca7ae" diff --git a/update.sh b/update.sh index 00edc71..de1be04 100644 --- a/update.sh +++ b/update.sh @@ -45,8 +45,8 @@ Print "ok" "server successfully stopped" CachedBackup "update" # update from url -url="https://launcher.mojang.com/v1/objects/5b868151bd02b41319f54c8d4061b8cae84e665c/server.jar" -version="1.20.2" +url="https://launcher.mojang.com/v1/objects/8dd1a28015f51b1803213892b50b7b4fc76e594d/server.jar" +version="1.20.4" # Test internet connectivity and update on success wget --spider --quiet "${url}"