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