mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-11-10 02:37:09 +00:00
Add some missing properties in env variables (#574)
This commit is contained in:
1 parent
c4654e44d8
commit
b3780186f8
3 files changed
+43
-7
No files matched your search
@@ -203,13 +203,13 @@ Enable the Autopause functionality by setting:
|
|||||||
```
|
```
|
||||||
|
|
||||||
There are 4 more environment variables that define the behaviour:
|
There are 4 more environment variables that define the behaviour:
|
||||||
* `AUTOPAUSE_TIMEOUT_EST`, default `3600` (seconds)
|
* `AUTOPAUSE_TIMEOUT_EST`, default `3600` (seconds)
|
||||||
describes the time between the last client disconnect and the pausing of the process (read as timeout established)
|
describes the time between the last client disconnect and the pausing of the process (read as timeout established)
|
||||||
* `AUTOPAUSE_TIMEOUT_INIT`, default `600` (seconds)
|
* `AUTOPAUSE_TIMEOUT_INIT`, default `600` (seconds)
|
||||||
describes the time between server start and the pausing of the process, when no client connects inbetween (read as timeout initialized)
|
describes the time between server start and the pausing of the process, when no client connects inbetween (read as timeout initialized)
|
||||||
* `AUTOPAUSE_TIMEOUT_KN`, default `120` (seconds)
|
* `AUTOPAUSE_TIMEOUT_KN`, default `120` (seconds)
|
||||||
describes the time between knocking of the port (e.g. by the main menu ping) and the pausing of the process, when no client connects inbetween (read as timeout knocked)
|
describes the time between knocking of the port (e.g. by the main menu ping) and the pausing of the process, when no client connects inbetween (read as timeout knocked)
|
||||||
* `AUTOPAUSE_PERIOD`, default `10` (seconds)
|
* `AUTOPAUSE_PERIOD`, default `10` (seconds)
|
||||||
describes period of the daemonized state machine, that handles the pausing of the process (resuming is done independently)
|
describes period of the daemonized state machine, that handles the pausing of the process (resuming is done independently)
|
||||||
|
|
||||||
## Deployment Templates and Examples
|
## Deployment Templates and Examples
|
||||||
@@ -1056,9 +1056,21 @@ Allows users to use flight on your server while in Survival mode, if they have a
|
|||||||
|
|
||||||
### Other server property mappings
|
### Other server property mappings
|
||||||
|
|
||||||
Environment Variable | Server Property
|
| Environment Variable | Server Property |
|
||||||
---------------------|-----------------
|
| --------------------------------- | --------------------------------- |
|
||||||
PLAYER_IDLE_TIMEOUT | player-idle-timeout
|
| PLAYER_IDLE_TIMEOUT | player-idle-timeout |
|
||||||
|
| BROADCAST_CONSOLE_TO_OPS | broadcast-console-to-ops |
|
||||||
|
| BROADCAST_RCON_TO_OPS | broadcast-rcon-to-ops |
|
||||||
|
| ENABLE_JMX | enable-jmx-monitoring |
|
||||||
|
| SYNC_CHUNK_WRITES | sync-chunk-writes |
|
||||||
|
| ENABLE_STATUS | enable-status |
|
||||||
|
| ENTITY_BROADCAST_RANGE_PERCENTAGE | entity-broadcast-range-percentage |
|
||||||
|
| FUNCTION_PERMISSION_LEVEL | function-permission-level |
|
||||||
|
| NETWORK_COMPRESSION_THRESHOLD | network-compression-threshold |
|
||||||
|
| OP_PERMISSION_LEVEL | op-permission-level |
|
||||||
|
| PREVENT_PROXY_CONNECTIONS | prevent-proxy-connections |
|
||||||
|
| USE_NATIVE_TRANSPORT | use-native-transport |
|
||||||
|
| ENFORCE_WHITELIST | enforce-whitelist |
|
||||||
|
|
||||||
## Miscellaneous Options
|
## Miscellaneous Options
|
||||||
|
|
||||||
|
|||||||
@@ -37,3 +37,15 @@ motd=A Minecraft Server powered by Docker
|
|||||||
generator-settings=
|
generator-settings=
|
||||||
rcon.password=
|
rcon.password=
|
||||||
max-world-size=29999984
|
max-world-size=29999984
|
||||||
|
broadcast-console-to-ops=true
|
||||||
|
broadcast-rcon-to-ops=true
|
||||||
|
enable-jmx-monitoring=false
|
||||||
|
sync-chunk-writes=true
|
||||||
|
enable-status=true
|
||||||
|
entity-broadcast-range-percentage=100
|
||||||
|
function-permission-level=2
|
||||||
|
network-compression-threshold=256
|
||||||
|
op-permission-level=4
|
||||||
|
prevent-proxy-connections=false
|
||||||
|
use-native-transport=true
|
||||||
|
enforce-whitelist=false
|
||||||
@@ -77,6 +77,18 @@ function customizeServerProps {
|
|||||||
setServerProp "resource-pack" "$RESOURCE_PACK"
|
setServerProp "resource-pack" "$RESOURCE_PACK"
|
||||||
setServerProp "resource-pack-sha1" "$RESOURCE_PACK_SHA1"
|
setServerProp "resource-pack-sha1" "$RESOURCE_PACK_SHA1"
|
||||||
setServerProp "player-idle-timeout" "$PLAYER_IDLE_TIMEOUT"
|
setServerProp "player-idle-timeout" "$PLAYER_IDLE_TIMEOUT"
|
||||||
|
setServerProp "broadcast-console-to-ops" "$BROADCAST_CONSOLE_TO_OPS"
|
||||||
|
setServerProp "broadcast-rcon-to-ops" "$BROADCAST_RCON_TO_OPS"
|
||||||
|
setServerProp "enable-jmx-monitoring" "$ENABLE_JMX"
|
||||||
|
setServerProp "sync-chunk-writes" "$SYNC_CHUNK_WRITES"
|
||||||
|
setServerProp "enable-status" "$ENABLE_STATUS"
|
||||||
|
setServerProp "entity-broadcast-range-percentage" "$ENTITY_BROADCAST_RANGE_PERCENTAGE"
|
||||||
|
setServerProp "function-permission-level" "$FUNCTION_PERMISSION_LEVEL"
|
||||||
|
setServerProp "network-compression-threshold" "$NETWORK_COMPRESSION_THRESHOLD"
|
||||||
|
setServerProp "op-permission-level" "$OP_PERMISSION_LEVEL"
|
||||||
|
setServerProp "prevent-proxy-connections" "$PREVENT_PROXY_CONNECTIONS"
|
||||||
|
setServerProp "use-native-transport" "$USE_NATIVE_TRANSPORT"
|
||||||
|
setServerProp "enforce-whitelist" "$ENFORCE_WHITELIST"
|
||||||
|
|
||||||
if [ -n "$DIFFICULTY" ]; then
|
if [ -n "$DIFFICULTY" ]; then
|
||||||
case $DIFFICULTY in
|
case $DIFFICULTY in
|
||||||
|
|||||||
Reference in new issue
Block a user