mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-02-27 19:36:24 +00:00
added special handling for on startup gamerules (/gamerule commands), unfortunately will clobber stdin for the running server process
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user