Merge pull request #51 from nlloyd/master

Adding gamerule.txt configuration file handling (optional)
This commit is contained in:
Geoff Bourne 2016-01-06 15:53:16 -06:00
commit 13ee106dac

View file

@ -313,6 +313,7 @@ do
cp -rf "$c" /data/config
fi
done
if [ "$TYPE" = "SPIGOT" ]; then
echo Copying any Bukkit plugins over
if [ -d /plugins ]; then
@ -320,4 +321,12 @@ if [ "$TYPE" = "SPIGOT" ]; then
fi
fi
# If we have a bootstrap.txt file... feed that in to the server stdin
if [ -f /data/bootstrap.txt ];
then
exec java $JVM_OPTS -jar $SERVER < /data/bootstrap.txt
else
exec java $JVM_OPTS -jar $SERVER
fi
exec java $JVM_OPTS -jar $SERVER