Initial commit

This commit is contained in:
Geoff Bourne committed 2019-07-09 21:02:37 -05:00
commit 2664947a9e
6 files changed
+100

No files matched your search

+37
View File
@@ -0,0 +1,37 @@
#!/bin/bash
if [[ ${EULA^^} != TRUE ]]; then
echo
echo "EULA must be set to TRUE to indicate agreement with the Minecraft End User License"
echo "See https://minecraft.net/terms"
echo
exit 1
fi
set -e
if [ ! -f bedrock_server ]; then
case ${VERSION} in
1.11)
VERSION=1.11.4.2
;;
1.12)
VERSION=1.12.0.28
;;
esac
DOWNLOAD_URL=https://minecraft.azureedge.net/bin-linux/bedrock-server-${VERSION}.zip
TMP_ZIP=/tmp/$(basename ${DOWNLOAD_URL})
echo "Downloading Bedrock server ${VERSION} ..."
curl -o ${TMP_ZIP} -fsSL ${DOWNLOAD_URL}
unzip -q ${TMP_ZIP}
chmod +x bedrock_server
fi
export LD_LIBRARY_PATH=.
echo "Starting Bedrock server..."
exec ./bedrock_server