2020-02-22 05:28:38 +01:00
|
|
|
#!/bin/sh
|
2020-03-30 10:44:38 +02:00
|
|
|
#This script basicly just downloads spigot and sets it up as a testserver
|
2020-02-22 05:28:38 +01:00
|
|
|
|
|
|
|
server="testserver/"
|
|
|
|
buildtools="${server}buildtools/"
|
|
|
|
mcvers="1.12.2"
|
|
|
|
|
|
|
|
mkdir -p "$server" "${buildtools}"
|
|
|
|
oldpwd=$(dirname $(realpath $0))
|
|
|
|
cd "$buildtools"
|
|
|
|
wget -nc https://hub.spigotmc.org/jenkins/job/BuildTools/lastStableBuild/artifact/target/BuildTools.jar
|
|
|
|
java -jar BuildTools.jar --compile SPIGOT --rev "$mcvers"
|
|
|
|
|
|
|
|
cd "${oldpwd}"
|
|
|
|
|
|
|
|
cp "${buildtools}spigot-${mcvers}.jar" "${server}"
|
|
|
|
echo "eula=true" > "${server}eula.txt"
|
|
|
|
|
|
|
|
printf "\n\n\n\n"
|
|
|
|
echo "server installed into: ${server}"
|
|
|
|
|
|
|
|
echo "delete ${buildtools} ?"
|
|
|
|
rm -frI "${buildtools}"
|