Skip to content

Commit b378018

Browse files
authored
Add some missing properties in env variables (itzg#574)
1 parent c4654e4 commit b378018

File tree

3 files changed

+43
-7
lines changed

3 files changed

+43
-7
lines changed

README.md

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -203,13 +203,13 @@ Enable the Autopause functionality by setting:
203203
```
204204

205205
There are 4 more environment variables that define the behaviour:
206-
* `AUTOPAUSE_TIMEOUT_EST`, default `3600` (seconds)
206+
* `AUTOPAUSE_TIMEOUT_EST`, default `3600` (seconds)
207207
describes the time between the last client disconnect and the pausing of the process (read as timeout established)
208-
* `AUTOPAUSE_TIMEOUT_INIT`, default `600` (seconds)
208+
* `AUTOPAUSE_TIMEOUT_INIT`, default `600` (seconds)
209209
describes the time between server start and the pausing of the process, when no client connects inbetween (read as timeout initialized)
210-
* `AUTOPAUSE_TIMEOUT_KN`, default `120` (seconds)
210+
* `AUTOPAUSE_TIMEOUT_KN`, default `120` (seconds)
211211
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)
212-
* `AUTOPAUSE_PERIOD`, default `10` (seconds)
212+
* `AUTOPAUSE_PERIOD`, default `10` (seconds)
213213
describes period of the daemonized state machine, that handles the pausing of the process (resuming is done independently)
214214

215215
## Deployment Templates and Examples
@@ -1056,9 +1056,21 @@ Allows users to use flight on your server while in Survival mode, if they have a
10561056
10571057
### Other server property mappings
10581058
1059-
Environment Variable | Server Property
1060-
---------------------|-----------------
1061-
PLAYER_IDLE_TIMEOUT | player-idle-timeout
1059+
| Environment Variable | Server Property |
1060+
| --------------------------------- | --------------------------------- |
1061+
| PLAYER_IDLE_TIMEOUT | player-idle-timeout |
1062+
| BROADCAST_CONSOLE_TO_OPS | broadcast-console-to-ops |
1063+
| BROADCAST_RCON_TO_OPS | broadcast-rcon-to-ops |
1064+
| ENABLE_JMX | enable-jmx-monitoring |
1065+
| SYNC_CHUNK_WRITES | sync-chunk-writes |
1066+
| ENABLE_STATUS | enable-status |
1067+
| ENTITY_BROADCAST_RANGE_PERCENTAGE | entity-broadcast-range-percentage |
1068+
| FUNCTION_PERMISSION_LEVEL | function-permission-level |
1069+
| NETWORK_COMPRESSION_THRESHOLD | network-compression-threshold |
1070+
| OP_PERMISSION_LEVEL | op-permission-level |
1071+
| PREVENT_PROXY_CONNECTIONS | prevent-proxy-connections |
1072+
| USE_NATIVE_TRANSPORT | use-native-transport |
1073+
| ENFORCE_WHITELIST | enforce-whitelist |
10621074
10631075
## Miscellaneous Options
10641076

server.properties

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,15 @@ motd=A Minecraft Server powered by Docker
3737
generator-settings=
3838
rcon.password=
3939
max-world-size=29999984
40+
broadcast-console-to-ops=true
41+
broadcast-rcon-to-ops=true
42+
enable-jmx-monitoring=false
43+
sync-chunk-writes=true
44+
enable-status=true
45+
entity-broadcast-range-percentage=100
46+
function-permission-level=2
47+
network-compression-threshold=256
48+
op-permission-level=4
49+
prevent-proxy-connections=false
50+
use-native-transport=true
51+
enforce-whitelist=false

start-finalSetup04ServerProperties

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,18 @@ function customizeServerProps {
7777
setServerProp "resource-pack" "$RESOURCE_PACK"
7878
setServerProp "resource-pack-sha1" "$RESOURCE_PACK_SHA1"
7979
setServerProp "player-idle-timeout" "$PLAYER_IDLE_TIMEOUT"
80+
setServerProp "broadcast-console-to-ops" "$BROADCAST_CONSOLE_TO_OPS"
81+
setServerProp "broadcast-rcon-to-ops" "$BROADCAST_RCON_TO_OPS"
82+
setServerProp "enable-jmx-monitoring" "$ENABLE_JMX"
83+
setServerProp "sync-chunk-writes" "$SYNC_CHUNK_WRITES"
84+
setServerProp "enable-status" "$ENABLE_STATUS"
85+
setServerProp "entity-broadcast-range-percentage" "$ENTITY_BROADCAST_RANGE_PERCENTAGE"
86+
setServerProp "function-permission-level" "$FUNCTION_PERMISSION_LEVEL"
87+
setServerProp "network-compression-threshold" "$NETWORK_COMPRESSION_THRESHOLD"
88+
setServerProp "op-permission-level" "$OP_PERMISSION_LEVEL"
89+
setServerProp "prevent-proxy-connections" "$PREVENT_PROXY_CONNECTIONS"
90+
setServerProp "use-native-transport" "$USE_NATIVE_TRANSPORT"
91+
setServerProp "enforce-whitelist" "$ENFORCE_WHITELIST"
8092

8193
if [ -n "$DIFFICULTY" ]; then
8294
case $DIFFICULTY in

0 commit comments

Comments
 (0)