From 5c238af3df31a63d207098ae1cc414aada5891df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bertron?= Date: Sun, 8 Sep 2019 23:40:45 +0200 Subject: [PATCH] Add spawn protection setting (#386) --- README.md | 6 ++++++ start-finalSetup04ServerProperties | 1 + 2 files changed, 7 insertions(+) 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"