updates to versions

This commit is contained in:
2023-11-10 13:56:33 -08:00
parent 25a1d1e4b4
commit 1c1ca09596
11 changed files with 64 additions and 117 deletions

View File

@@ -2,12 +2,11 @@
# Copyright (c) 2023 fithwum
# All rights reserved
MC_VERSION="1.19.4"
MC_VERSION="1.14"
TEST=$(curl -s "https://piston-meta.mojang.com/mc/game/version_manifest_v2.json" | grep -Pom 1 '"url": "\K[^"]*'$MC_VERSION'.json')
VERSION_CHECK=$(curl -s "https://piston-meta.mojang.com/mc/game/version_manifest_v2.json" | grep -Pom 1 '"url": "\K[^"]*'$MC_VERSION'.json')
SERVER_FILE=$(curl -s $VERSION_CHECK | jq --raw-output '.downloads.server.url')
echo "Version url: $TEST"
echo "Server url: $SERVER_FILE"
MC_VERSION_CHECK=$(curl -s "$TEST" | grep -Pom 1 '"url": "\K[^"]*server.json')
echo "Server url: $MC_VERSION_CHECK"
wget --no-cache ${SERVER_FILE} -O /mnt/Other/Dockers/minecraft/testing/server-${MC_VERSION}.jar