12 lines
435 B
Bash
Executable File
12 lines
435 B
Bash
Executable File
#!/bin/bash
|
|
# Copyright (c) 2023 fithwum
|
|
# All rights reserved
|
|
|
|
MC_VERSION="1.14.4"
|
|
|
|
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 "Server url: $SERVER_FILE"
|
|
|
|
wget --no-cache ${SERVER_FILE} -O /mnt/Other/Dockers/minecraft/testing/server-${MC_VERSION}.jar |