Skip to content

Commit

Permalink
chore(update): to latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
simylein committed Dec 17, 2023
1 parent ebe8392 commit 5a1f454
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/startup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 5a1f454

Please sign in to comment.