mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-11-12 23:27:13 +00:00
Auto-merging via docker-versions-create
This commit is contained in:
commit
332b5b3eb9
2 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||
|
||||
<!-- Added by: runner, at: Mon Sep 20 02:33:20 UTC 2021 -->
|
||||
<!-- Added by: runner, at: Sat Sep 25 14:39:20 UTC 2021 -->
|
||||
|
||||
<!--te-->
|
||||
|
||||
|
@ -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 ...
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue