From 60c9e9dc7e16fd19fc186ab2c86bd9a2425a30e1 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 28 Oct 2020 21:20:00 +0100 Subject: [PATCH] add some protection settings --- config-file-example | 6 +++++- setup-mt | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/config-file-example b/config-file-example index 2a9108e8..07757815 100644 --- a/config-file-example +++ b/config-file-example @@ -19,4 +19,8 @@ mt_server_url="https://example.tld" mt_server_address="example.tld/ip_address" mt_server_description="FULLY OPEN-SOURCE SERVER CREATED BY https://git.my-web.xyz/milan/minetest-mm.git" mt_server_name="My Minetest-mm server - DEVEL" -mt_mg_name="v6" \ No newline at end of file +mt_mg_name="v6" +mt_protector_hurt="8" +mt_protector_flip="true" +mt_protector_pvp="false" + diff --git a/setup-mt b/setup-mt index 8a572598..11bac3ad 100755 --- a/setup-mt +++ b/setup-mt @@ -123,6 +123,10 @@ echo "port = "$mt_port"" >> /home/minetest/.minetest/minetest.conf echo "enable_rollback_recording = "$mt_enable_rollback_recording"" >> /home/minetest/.minetest/minetest.conf echo "default_privs = "$mt_default_privs"" >> /home/minetest/.minetest/minetest.conf echo "mg_name = "$mt_mg_name"" >> /home/minetest/.minetest/minetest.conf +echo "protector_hurt = "$mt_protector_hurt"" >> /home/minetest/.minetest/minetest.conf +echo "protector_flip = "$mt_protector_flip"" >> /home/minetest/.minetest/minetest.conf +echo "protector_pvp = "$mt_protector_pvp"" >> /home/minetest/.minetest/minetest.conf + echo "Fix privileges on /home/minetest" chown minetest:minetest /home/minetest/ -cR