paper: download default configs to allow for patching (#2883)

This commit is contained in:
Geoff Bourne
2024-06-08 12:46:54 -05:00
committed by GitHub
parent ed7a6668aa
commit ca8abe3e16

View File

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