diff --git a/minecraft-server/README.md b/minecraft-server/README.md index 19ba7391..88a41392 100644 --- a/minecraft-server/README.md +++ b/minecraft-server/README.md @@ -297,6 +297,9 @@ directory, if required. **NOTE:** Unless you also mount `/data` as an external volume, this world will be deleted when the container is deleted. +**NOTE:** This URL must be accessible from inside the container. Therefore, +you should use an IP address or a globally resolveable FQDN, or else the +name of a linked container. ## JVM Configuration diff --git a/minecraft-server/start-minecraft.sh b/minecraft-server/start-minecraft.sh index 2a2b4527..92513ab0 100755 --- a/minecraft-server/start-minecraft.sh +++ b/minecraft-server/start-minecraft.sh @@ -93,15 +93,17 @@ esac case "X$WORLD" in X[Hh][Tt][Tt][Pp]*[Zz][iI][pP]) echo "Downloading world via HTTP" + echo "$WORLD" wget -q -O - "$WORLD" > /data/world.zip echo "Unzipping word" unzip -q /data/world.zip rm -f /data/world.zip if [ ! -d /data/world ]; then - echo Renaming world directory... + echo World directory not found for i in /data/*/level.dat; do if [ -f "$i" ]; then d=`dirname "$i"` + echo Renaming world directory from $d mv -f "$d" /data/world fi done @@ -229,8 +231,8 @@ fi if [ ! -e banned-players.json ]; then echo '' > banned-players.json fi -if [ ! -e banned-ip.json ]; then - echo '' > banned-ip.json +if [ ! -e banned-ips.json ]; then + echo '' > banned-ips.json fi # If any modules have been provided, copy them over