mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-12-12 21:32:28 +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:
parent
16b3f18400
commit
2afbdc959e
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue