mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-11-22 14:34:21 +00:00
Add spawn protection setting (#386)
This commit is contained in:
1 parent
8e148095f0
commit
5c238af3df
2 files changed
+7
No files matched your search
@@ -824,6 +824,12 @@ Determines if villagers will be spawned.
|
|||||||
|
|
||||||
docker run -d -e SPAWN_NPCS=true
|
docker run -d -e SPAWN_NPCS=true
|
||||||
|
|
||||||
|
### Set spawn protection
|
||||||
|
|
||||||
|
Sets the area that non-ops can not edit (0 to disable)
|
||||||
|
|
||||||
|
docker run -d -e SPAWN_PROTECTION=0
|
||||||
|
|
||||||
### View Distance
|
### View Distance
|
||||||
Sets the amount of world data the server sends the client, measured in chunks in each direction of the player (radius, not diameter).
|
Sets the amount of world data the server sends the client, measured in chunks in each direction of the player (radius, not diameter).
|
||||||
It determines the server-side viewing distance.
|
It determines the server-side viewing distance.
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ function customizeServerProps {
|
|||||||
setServerProp "spawn-animals" "$SPAWN_ANIMALS"
|
setServerProp "spawn-animals" "$SPAWN_ANIMALS"
|
||||||
setServerProp "spawn-monsters" "$SPAWN_MONSTERS"
|
setServerProp "spawn-monsters" "$SPAWN_MONSTERS"
|
||||||
setServerProp "spawn-npcs" "$SPAWN_NPCS"
|
setServerProp "spawn-npcs" "$SPAWN_NPCS"
|
||||||
|
setServerProp "spawn-protection" "$SPAWN_PROTECTION"
|
||||||
setServerProp "generate-structures" "$GENERATE_STRUCTURES"
|
setServerProp "generate-structures" "$GENERATE_STRUCTURES"
|
||||||
setServerProp "view-distance" "$VIEW_DISTANCE"
|
setServerProp "view-distance" "$VIEW_DISTANCE"
|
||||||
setServerProp "hardcore" "$HARDCORE"
|
setServerProp "hardcore" "$HARDCORE"
|
||||||
|
|||||||
Reference in new issue
Block a user