mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-02-21 16:46:23 +00:00
paper: download default configs to allow for patching (#2883)
This commit is contained in:
@@ -9,6 +9,7 @@ handleDebugMode
|
||||
: "${PAPERBUILD:=}"
|
||||
: "${PAPER_DOWNLOAD_URL:=}"
|
||||
: "${PAPER_CUSTOM_JAR:=}"
|
||||
: "${PAPER_CONFIG_DEFAULTS_REPO:=https://raw.githubusercontent.com/dayyeeet/minecraft-default-configs/main}"
|
||||
|
||||
resultsFile=/data/.paper.env
|
||||
if [[ $PAPER_CUSTOM_JAR ]]; then
|
||||
@@ -49,6 +50,13 @@ else
|
||||
|
||||
fi
|
||||
|
||||
# Download default configs to allow for consistent patching
|
||||
configs=(paper-global.yml paper-world-defaults.yml spigot.yml)
|
||||
mkdir -p config
|
||||
if ! get --skip-existing --log-progress-each -o config "${configs[@]/#/${PAPER_CONFIG_DEFAULTS_REPO}/${VERSION}/}" 2> /dev/null; then
|
||||
log "WARN: one or more default PaperMC config files were not available from ${PAPER_CONFIG_DEFAULTS_REPO}"
|
||||
fi
|
||||
|
||||
# Normalize on Spigot for downstream operations
|
||||
export FAMILY=SPIGOT
|
||||
|
||||
|
||||
Reference in New Issue
Block a user