From ce2da7746773512028f66031043ab23bb7adbdc2 Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Wed, 7 Dec 2022 08:13:20 -0600 Subject: [PATCH] Logs when downloading vanilla server jar were confusing Also: - added info for multi-line MOTD --- README.md | 4 ++++ scripts/start-deployVanilla | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 662b85440e0..3dc77fc928d 100644 --- a/README.md +++ b/README.md @@ -1002,6 +1002,10 @@ renders ![](docs/motd-example.png) +To produce a multi-line MOTD, you will need to double escape the newline such as + + -e MOTD="Line one\\nLine two" + ### Difficulty The difficulty level (default: `easy`) can be set like: diff --git a/scripts/start-deployVanilla b/scripts/start-deployVanilla index bd33947ae88..870cc61be59 100755 --- a/scripts/start-deployVanilla +++ b/scripts/start-deployVanilla @@ -8,7 +8,6 @@ set -o pipefail export SERVER="minecraft_server.${VANILLA_VERSION// /_}.jar" if [ ! -e "$SERVER" ] || [ -n "$FORCE_REDOWNLOAD" ]; then - log "Locating download for $SERVER ..." debug "Finding version manifest for $VANILLA_VERSION" versionManifestUrl=$(get 'https://launchermeta.mojang.com/mc/game/version_manifest.json' | jq --arg VANILLA_VERSION "$VANILLA_VERSION" --raw-output '[.versions[]|select(.id == $VANILLA_VERSION)][0].url') result=$? @@ -30,6 +29,7 @@ if [ ! -e "$SERVER" ] || [ -n "$FORCE_REDOWNLOAD" ]; then exit 1 fi + log "Downloading $VANILLA_VERSION server..." debug "Downloading server from $serverDownloadUrl" get -o "$SERVER" "$serverDownloadUrl" result=$?