mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-10-17 17:18:11 +00:00
Allow specify paper build and don't use legacy gamemode and difficulty (#503)
This commit is contained in:
1 parent
e9b1332119
commit
c2846fc586
3 files changed
+60
-25
No files matched your search
+5
-3
@@ -2,10 +2,12 @@
|
||||
|
||||
. /start-utils
|
||||
|
||||
export SERVER=paper_server-${VANILLA_VERSION}.jar
|
||||
PAPERBUILD=${PAPERBUILD:-LATEST}
|
||||
export SERVER=paper_server-${VANILLA_VERSION}-${PAPERBUILD}.jar
|
||||
|
||||
if [ ! -f "$SERVER" ] || [ -n "$FORCE_REDOWNLOAD" ]; then
|
||||
downloadUrl=${PAPER_DOWNLOAD_URL:-https://papermc.io/api/v1/paper/${VANILLA_VERSION}/latest/download}
|
||||
log "Downloading Paper $VANILLA_VERSION from $downloadUrl ..."
|
||||
downloadUrl=${PAPER_DOWNLOAD_URL:-https://papermc.io/api/v1/paper/${VANILLA_VERSION}/${PAPERBUILD}/download}
|
||||
log "Downloading Paper $VANILLA_VERSION (build $PAPERBUILD) from $downloadUrl ..."
|
||||
curl -fsSL -o "$SERVER" "$downloadUrl"
|
||||
if [ ! -f "$SERVER" ]; then
|
||||
log "ERROR: failed to download from $downloadUrl (status=$?)"
|
||||
|
||||
Reference in new issue
Block a user