mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-02-17 07:03:57 +00:00
Support Purpur and Pufferfish config repos & optimize server.properties handling (#3914)
This commit is contained in:
committed by
GitHub
parent
fbbe29507e
commit
6e05807865
@@ -4,6 +4,7 @@ IFS=$'\n\t'
|
||||
|
||||
: "${PURPUR_BUILD:=LATEST}"
|
||||
: "${PURPUR_DOWNLOAD_URL:=}"
|
||||
: "${PURPUR_CONFIG_REPO:=}"
|
||||
|
||||
# shellcheck source=start-utils
|
||||
. "$(dirname "$0")/start-utils"
|
||||
@@ -36,6 +37,12 @@ fi
|
||||
|
||||
applyResultsFile ${resultsFile}
|
||||
|
||||
if [[ "${PURPUR_CONFIG_REPO}" ]]; then
|
||||
defaultTopLevelConfigs=(bukkit.yml spigot.yml purpur.yml)
|
||||
DOWNLOAD_DEFAULTS=$(buildDownloadList "$PURPUR_CONFIG_REPO" "$VERSION" "${defaultTopLevelConfigs[@]}")
|
||||
export DOWNLOAD_DEFAULTS
|
||||
fi
|
||||
|
||||
# Normalize on Spigot for later operations
|
||||
export FAMILY=SPIGOT
|
||||
|
||||
|
||||
Reference in New Issue
Block a user