From ca8abe3e1649f903f2499c80fb247bcf77971f0b Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Sat, 8 Jun 2024 12:46:54 -0500 Subject: [PATCH] paper: download default configs to allow for patching (#2883) --- scripts/start-deployPaper | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/start-deployPaper b/scripts/start-deployPaper index a72f7ab4..d071bbe4 100755 --- a/scripts/start-deployPaper +++ b/scripts/start-deployPaper @@ -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