Browse Source

rename areas owner_privs into interact_privs

main
Hendrik Langer 3 years ago
parent
commit
8b422676b5
  1. 4
      init.lua
  2. 2
      settingtypes.txt

4
init.lua

@ -5,7 +5,7 @@ local S = minetest.get_translator("creative_regions")
creative_regions = {}
areas_owner_privs = minetest.settings:get("creative_regions.owner_privs") or "+creative, +fast, +fly"
areas_interact_privs = minetest.settings:get("creative_regions.interact_privs") or "+creative, +fast, +fly"
areas_guest_privs = minetest.settings:get("creative_regions.guest_privs") or ""
noregion_privs = minetest.settings:get("creative_regions.noregion_privs") or "-creative, +fast, -fly"
default_privs = minetest.settings:get("creative_regions.default_privs") or "+creative, +fast, +fly"
@ -92,7 +92,7 @@ function creative_regions:update_player(player, initialize)
-- overwrite
if areas_owner or areas_open then
creative_regions:add_privs_from_string(new_privs_table, areas_owner_privs)
creative_regions:add_privs_from_string(new_privs_table, areas_interact_privs)
creative_regions:add_privs_from_string(new_privs_table, "-arena")
end

2
settingtypes.txt

@ -1,5 +1,5 @@
# Privs of an areas mod owner
creative_regions.owner_privs (Owner privs) string "+creative, +fast, +fly"
creative_regions.interact_privs (Owner privs) string "+creative, +fast, +fly"
# Privs of an areas mod guest
creative_regions.guest_privs (Guest privs) string ""

Loading…
Cancel
Save