added special handling for on startup gamerules (/gamerule commands), unfortunately will clobber stdin for the running server process

This commit is contained in:
Nick Lloyd 2016-01-01 17:03:04 -05:00
parent 16b3f18400
commit 2afbdc959e

View file

@ -253,5 +253,12 @@ do
fi
done
# If we have a gamerules.txt file... feed that in to the server stdin
if [ -f /data/gamerules.txt ];
then
exec java $JVM_OPTS -jar $SERVER < /data/gamerules.txt
else
exec java $JVM_OPTS -jar $SERVER
fi
exec java $JVM_OPTS -jar $SERVER