mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-12-13 13:52:27 +00:00
Merge pull request #51 from nlloyd/master
Adding gamerule.txt configuration file handling (optional)
This commit is contained in:
commit
13ee106dac
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue