From d8987966723d882b3e1533a7ae813b69dc71fefc Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Sat, 25 Aug 2018 18:16:47 -0500 Subject: [PATCH] Support Paper builds for 1.13 and fix 1.12.2/1.11.2 builds Fixed #244 --- minecraft-server/start-deployPaper | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/minecraft-server/start-deployPaper b/minecraft-server/start-deployPaper index 16564a9b..dd8f1a21 100755 --- a/minecraft-server/start-deployPaper +++ b/minecraft-server/start-deployPaper @@ -2,9 +2,18 @@ export SERVER=paper_server.jar if [ ! -f $SERVER ]; then - case "$VERSION" in - latest|LATEST|1.10) + job=PaperSpigot + case "${VANILLA_VERSION}" in + 1.13.*) + job=Paper-1.13 + build="lastSuccessfulBuild" + ;; + 1.12.2) build="lastSuccessfulBuild";; + 1.11.2) + build="1104";; + 1.10.2) + build="916";; 1.9.4) build="773";; 1.9.2) @@ -19,7 +28,8 @@ if [ ! -f $SERVER ]; then if [ $build != "nosupp" ]; then rm -f $SERVER - downloadUrl=${PAPER_DOWNLOAD_URL:-https://ci.destroystokyo.com/job/PaperSpigot/$build/artifact/paperclip.jar} + downloadUrl=${PAPER_DOWNLOAD_URL:-https://ci.destroystokyo.com/job/$job/$build/artifact/paperclip.jar} + echo "Downloading Paper $VANILLA_VERSION from $downloadUrl ..." curl -fsSL -o $SERVER "$downloadUrl" if [ ! -f $SERVER ]; then echo "ERROR: failed to download from $downloadUrl (status=$?)"