Added env var mapping for player-idle-timeout

This commit is contained in:
Geoff Bourne
2020-04-16 11:40:49 -05:00
parent dbca9c30b0
commit 9842a52820
2 changed files with 7 additions and 0 deletions

View File

@@ -987,6 +987,12 @@ Allows users to use flight on your server while in Survival mode, if they have a
-e ALLOW_FLIGHT=TRUE|FALSE
### Other server property mappings:
Environment Variable | Server Property
---------------------|-----------------
PLAYER_IDLE_TIMEOUT | player-idle-timeout
## Miscellaneous Options
### Running as alternate user/group ID

View File

@@ -76,6 +76,7 @@ function customizeServerProps {
setServerProp "level-type" "${LEVEL_TYPE^^}"
setServerProp "resource-pack" "$RESOURCE_PACK"
setServerProp "resource-pack-sha1" "$RESOURCE_PACK_SHA1"
setServerProp "player-idle-timeout" "$PLAYER_IDLE_TIMEOUT"
if [ -n "$DIFFICULTY" ]; then
case $DIFFICULTY in