diff --git a/config-file-example b/config-file-example index c830055c..3cd146d6 100644 --- a/config-file-example +++ b/config-file-example @@ -24,3 +24,4 @@ mt_protector_hurt="8" mt_protector_flip="true" mt_protector_pvp="false" mt_tubelib_machine_aging_value="600" +mt_creative_mode="false" diff --git a/mods-apply-world.mt-regenerate-from-config-file b/mods-apply-world.mt-regenerate-from-config-file index 957ce64a..b0da96f2 100755 --- a/mods-apply-world.mt-regenerate-from-config-file +++ b/mods-apply-world.mt-regenerate-from-config-file @@ -6,7 +6,7 @@ cp -r mods /home/minetest/.minetest/mods echo "gameid = minetest" > /home/minetest/.minetest/worlds/world/world.mt echo "backend = postgresql" >> /home/minetest/.minetest/worlds/world/world.mt -echo "creative_mode = false" >> /home/minetest/.minetest/worlds/world/world.mt +echo "creative_mode = $mt_creative_mode" >> /home/minetest/.minetest/worlds/world/world.mt echo "enable_damage = true" >> /home/minetest/.minetest/worlds/world/world.mt echo "player_backend = postgresql" >> /home/minetest/.minetest/worlds/world/world.mt echo "auth_backend = postgresql" >> /home/minetest/.minetest/worlds/world/world.mt diff --git a/reset-all-world.mt-regenerate-from-config-file b/reset-all-world.mt-regenerate-from-config-file index 2840a0b3..92755c55 100644 --- a/reset-all-world.mt-regenerate-from-config-file +++ b/reset-all-world.mt-regenerate-from-config-file @@ -35,7 +35,7 @@ mv -f /tmp/minetest.conf /home/minetest/.minetest/minetest.conf echo "gameid = minetest" > /home/minetest/.minetest/worlds/world/world.mt echo "backend = postgresql" >> /home/minetest/.minetest/worlds/world/world.mt -echo "creative_mode = false" >> /home/minetest/.minetest/worlds/world/world.mt +echo "creative_mode = $mt_creative_mode" >> /home/minetest/.minetest/worlds/world/world.mt echo "enable_damage = true" >> /home/minetest/.minetest/worlds/world/world.mt echo "player_backend = postgresql" >> /home/minetest/.minetest/worlds/world/world.mt echo "auth_backend = postgresql" >> /home/minetest/.minetest/worlds/world/world.mt