mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-08-08 00:13:18 +00:00
paper: download default configs to allow for patching (#2883)
This commit is contained in:
@@ -9,6 +9,7 @@ handleDebugMode
|
|||||||
: "${PAPERBUILD:=}"
|
: "${PAPERBUILD:=}"
|
||||||
: "${PAPER_DOWNLOAD_URL:=}"
|
: "${PAPER_DOWNLOAD_URL:=}"
|
||||||
: "${PAPER_CUSTOM_JAR:=}"
|
: "${PAPER_CUSTOM_JAR:=}"
|
||||||
|
: "${PAPER_CONFIG_DEFAULTS_REPO:=https://raw.githubusercontent.com/dayyeeet/minecraft-default-configs/main}"
|
||||||
|
|
||||||
resultsFile=/data/.paper.env
|
resultsFile=/data/.paper.env
|
||||||
if [[ $PAPER_CUSTOM_JAR ]]; then
|
if [[ $PAPER_CUSTOM_JAR ]]; then
|
||||||
@@ -49,6 +50,13 @@ else
|
|||||||
|
|
||||||
fi
|
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
|
# Normalize on Spigot for downstream operations
|
||||||
export FAMILY=SPIGOT
|
export FAMILY=SPIGOT
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user