File tree Expand file tree Collapse file tree 1 file changed +10
-15
lines changed Expand file tree Collapse file tree 1 file changed +10
-15
lines changed Original file line number Diff line number Diff line change @@ -21,9 +21,6 @@ if [[ ${EULA^^} != TRUE ]]; then
21
21
fi
22
22
23
23
case ${VERSION^^} in
24
- 1.11)
25
- VERSION=1.11.4.2
26
- ;;
27
24
1.12)
28
25
VERSION=1.12.0.28
29
26
;;
@@ -33,28 +30,26 @@ case ${VERSION^^} in
33
30
1.14)
34
31
VERSION=1.14.60.5
35
32
;;
36
- 1.16.1)
37
- VERSION=1.16.1.02
38
- ;;
39
33
1.16)
40
34
VERSION=1.16.20.03
41
35
;;
42
- 1.17|PREVIOUS )
36
+ 1.17)
43
37
VERSION=1.17.41.01
44
38
;;
45
39
1.17.41)
46
40
VERSION=1.17.41.01
47
41
;;
42
+ 1.18|PREVIOUS)
43
+ VERSION=1.18.33.02
44
+ ;;
48
45
LATEST)
49
46
echo " Looking up latest version..."
50
- for a in data-platform ; do
51
- for i in {1..3}; do
52
- DOWNLOAD_URL=$( restify --user-agent=itzg/minecraft-bedrock-server --headers " accept-language:*" --attribute=${a} =serverBedrockLinux ${downloadPage} 2> restify.err | jq -r ' .[0].href' || echo ' ' )
53
- if [[ ${DOWNLOAD_URL} ]]; then
54
- break 2
55
- fi
56
- sleep 1
57
- done
47
+ for i in {1..3}; do
48
+ DOWNLOAD_URL=$( restify --user-agent=itzg/minecraft-bedrock-server --headers " accept-language:*" --attribute=data-platform=serverBedrockLinux ${downloadPage} 2> restify.err | jq -r ' .[0].href' || echo ' ' )
49
+ if [[ ${DOWNLOAD_URL} ]]; then
50
+ break 2
51
+ fi
52
+ sleep 1
58
53
done
59
54
if [[ -z ${DOWNLOAD_URL} ]]; then
60
55
DOWNLOAD_URL=$( curl -s https://mc-bds-helper.vercel.app/api/latest)
You can’t perform that action at this time.
0 commit comments