From 82cd74732d64819d32ba05fc69e16bcbd9462166 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Fri, 30 Oct 2020 01:08:58 +0100 Subject: Update Minecraft config --- minecraft/install | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'minecraft/install') diff --git a/minecraft/install b/minecraft/install index 7d58d11..07e9c94 100644 --- a/minecraft/install +++ b/minecraft/install @@ -1,5 +1,14 @@ #!/bin/sh +# install the latest build of Paper for Minecraft VERSION into MCPATH + VERSION=1.16.3 -build=`curl +s https://papermc.io/api/v1/paper/$VERSION | sed 's/.*"latest":"\([0-9]*\)".*/\1/'` -curl -o paper.server.jar https://papermc.io/api/v1/paper/$VERSION/$build/download \ No newline at end of file +MCPATH=/srv/minecraft + +apk add openjdk8-jre ncurses +apk add screen # needed only if you use the OpenRC script + +mkdir -p "$MCPATH" +cd "$MCPATH" +build=`curl -s "https://papermc.io/api/v1/paper/$VERSION" | sed 's/.*"latest":"\([0-9]*\)".*/\1/'` +curl -o paper.server.jar "https://papermc.io/api/v1/paper/$VERSION/$build/download" \ No newline at end of file -- cgit v1.2.3