From acb068de4fd2cd37a8a0ac406f8a0eeed4fd5380 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Fri, 30 Oct 2020 13:34:57 +0100 Subject: Move Minecraft config to separate branch --- install | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 install (limited to 'install') diff --git a/install b/install new file mode 100644 index 0000000..07e9c94 --- /dev/null +++ b/install @@ -0,0 +1,14 @@ +#!/bin/sh + +# install the latest build of Paper for Minecraft VERSION into MCPATH + +VERSION=1.16.3 +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