mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-09-28 16:40:31 +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
|
fi
|
||||||
done
|
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
|
exec java $JVM_OPTS -jar $SERVER
|
||||||
|
|||||||
Reference in New Issue
Block a user