diff --git a/README.md b/README.md index c48b6ab8..4c7b762e 100644 --- a/README.md +++ b/README.md @@ -823,6 +823,12 @@ Determines if monsters will be spawned. Determines if villagers will be spawned. 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 Sets the amount of world data the server sends the client, measured in chunks in each direction of the player (radius, not diameter). diff --git a/start-finalSetup04ServerProperties b/start-finalSetup04ServerProperties index a3815e67..b9df16e8 100644 --- a/start-finalSetup04ServerProperties +++ b/start-finalSetup04ServerProperties @@ -49,6 +49,7 @@ function customizeServerProps { setServerProp "spawn-animals" "$SPAWN_ANIMALS" setServerProp "spawn-monsters" "$SPAWN_MONSTERS" setServerProp "spawn-npcs" "$SPAWN_NPCS" + setServerProp "spawn-protection" "$SPAWN_PROTECTION" setServerProp "generate-structures" "$GENERATE_STRUCTURES" setServerProp "view-distance" "$VIEW_DISTANCE" setServerProp "hardcore" "$HARDCORE"