diff --git a/README.md b/README.md index 477eb809..621e38fc 100644 --- a/README.md +++ b/README.md @@ -129,7 +129,7 @@ By default, the container will download the latest version of the "vanilla" [Min * [Enabling Autopause](#enabling-autopause) * [Running on RaspberryPi](#running-on-raspberrypi) - + @@ -779,6 +779,8 @@ values. ### Whitelist Players +> **NOTE** it is very important to set this with servers exposed to the internet where you want only limited players to join. + To whitelist players for your Minecraft server, pass the Minecraft usernames separated by commas via the `WHITELIST` environment variable, such as docker run -d -e WHITELIST=user1,user2 ... diff --git a/start-setupModpack b/start-setupModpack index a037b8f2..92cb9811 100755 --- a/start-setupModpack +++ b/start-setupModpack @@ -22,7 +22,7 @@ if [[ "$MODPACK" ]]; then if [[ "${MODPACK}" == *.zip ]]; then downloadUrl="${MODPACK}" else - downloadUrl=$(curl -Ls -o /dev/null -w %{effective_url} $MODPACK) + downloadUrl=$(curl -Ls -o /dev/null -w %{url_effective} $MODPACK) if ! [[ $downloadUrl == *.zip ]]; then log "ERROR Invalid URL given for MODPACK: $downloadUrl resolved from $MODPACK" log " Must be HTTP, HTTPS or FTP and a ZIP file"