[mc] Adding Spigot/Bukkit 1.9 support

fixes #62
This commit is contained in:
Geoff Bourne
2016-03-04 22:13:02 -06:00
parent 5f104a32db
commit a4bd241be6
+6 -3
View File
@@ -41,11 +41,11 @@ case "$TYPE" in
TYPE=SPIGOT TYPE=SPIGOT
case "$TYPE" in case "$TYPE" in
*BUKKIT|*bukkit) *BUKKIT|*bukkit)
echo "Downloading latest CraftBukkit 1.8 server ..." echo "Downloading latest CraftBukkit $VANILLA_VERSION server ..."
SERVER=craftbukkit_server.jar SERVER=craftbukkit_server.jar
;; ;;
*) *)
echo "Downloading latest Spigot 1.8 server ..." echo "Downloading latest Spigot $VANILLA_VERSION server ..."
SERVER=spigot_server.jar SERVER=spigot_server.jar
;; ;;
esac esac
@@ -53,6 +53,9 @@ case "$TYPE" in
1.8*) 1.8*)
URL=/spigot18/$SERVER URL=/spigot18/$SERVER
;; ;;
1.9*)
URL=/spigot19/$SERVER
;;
*) *)
echo "That version of $SERVER is not available." echo "That version of $SERVER is not available."
exit 1 exit 1
@@ -126,7 +129,7 @@ case "X$WORLD" in
if [ ! -d /data/world ]; then if [ ! -d /data/world ]; then
echo World directory not found echo World directory not found
for i in /data/*/level.dat; do for i in /data/*/level.dat; do
if [ -f "$i" ]; then if [ -f "$i" ]; then
d=`dirname "$i"` d=`dirname "$i"`
echo Renaming world directory from $d echo Renaming world directory from $d
mv -f "$d" /data/world mv -f "$d" /data/world