Logs when downloading vanilla server jar were confusing (#1856)

Also:
- added info for multi-line MOTD
This commit is contained in:
Geoff Bourne
2022-12-07 08:27:43 -06:00
committed by GitHub
parent 940323f1b3
commit e41ea3d1c8
2 changed files with 5 additions and 1 deletions

View File

@@ -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:

View File

@@ -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=$?