Skip to content

Commit

Permalink
feat(version): update to 1.21.4
Browse files Browse the repository at this point in the history
  • Loading branch information
simylein committed Dec 13, 2024
1 parent fa2e25f commit 4cefc86
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.21.3 --port 25565 --eula true --remove true --start false
run: chmod +x setup.sh && ./setup.sh --name minecraft --proceed true --version 1.21.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.21.3 --port 25565 --eula true --remove true --start true
./setup.sh --name minecraft --proceed true --version 1.21.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.21.3" "1.20.5" "1.19.4" "1.18.2")
versions=("1.21.4" "1.20.5" "1.19.4" "1.18.2")
select version in "${versions[@]}"; do
case ${version} in
"1.21.3")
FetchServerFile "45810d238246d90e811d896f87b14695b7fb6839"
"1.21.4")
FetchServerFile "4707d00eb834b446575d89a61a11b5d548d8c001"
break
;;
"1.20.5")
Expand All @@ -360,8 +360,8 @@ if [[ ${versionArg} == false ]]; then
elif [[ ${versionArg} == true ]]; then
version="${versionVal}"
case ${version} in
"1.21.3")
FetchServerFile "45810d238246d90e811d896f87b14695b7fb6839"
"1.21.4")
FetchServerFile "4707d00eb834b446575d89a61a11b5d548d8c001"
;;
"1.20.5")
FetchServerFile "79493072f65e17243fd36a699c9a96b4381feb91"
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/45810d238246d90e811d896f87b14695b7fb6839/server.jar"
version="1.21.3"
url="https://launcher.mojang.com/v1/objects/4707d00eb834b446575d89a61a11b5d548d8c001/server.jar"
version="1.21.4"

# Test internet connectivity and update on success
wget --spider --quiet "${url}"
Expand Down

0 comments on commit 4cefc86

Please sign in to comment.