mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-11-10 10:41:00 +00:00
Merge pull request #51 from nlloyd/master
Adding gamerule.txt configuration file handling (optional)
This commit is contained in:
commit
13ee106dac
1 file changed
+9
@@ -313,6 +313,7 @@ do
|
|||||||
cp -rf "$c" /data/config
|
cp -rf "$c" /data/config
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ "$TYPE" = "SPIGOT" ]; then
|
if [ "$TYPE" = "SPIGOT" ]; then
|
||||||
echo Copying any Bukkit plugins over
|
echo Copying any Bukkit plugins over
|
||||||
if [ -d /plugins ]; then
|
if [ -d /plugins ]; then
|
||||||
@@ -320,4 +321,12 @@ if [ "$TYPE" = "SPIGOT" ]; then
|
|||||||
fi
|
fi
|
||||||
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
|
exec java $JVM_OPTS -jar $SERVER
|
||||||
Reference in new issue
Block a user