aboutsummaryrefslogtreecommitdiff
path: root/install
blob: 07e9c94de6f434a0ae181c5f3176475c3dee2880 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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"