|
|
@ -9,7 +9,7 @@ switch_creative.area_privs = {} |
|
|
|
|
|
|
|
areas_owner_privs = minetest.settings:get("switch_creative.owner_privs") or "+creative, +fast, +fly" |
|
|
|
areas_guest_privs = minetest.settings:get("switch_creative.guest_privs") or "-fly, -fast" |
|
|
|
default_privs = minetest.settings:get("switch_creative.default_privs") or "-creative, +fast, -fly" |
|
|
|
noarea_privs = minetest.settings:get("switch_creative.noarea_privs") or "-creative, +fast, -fly" |
|
|
|
|
|
|
|
function switch_creative:load_areas() |
|
|
|
self.astore:from_file(minetest.get_worldpath().."/switch_creative_areas") |
|
|
@ -299,7 +299,7 @@ function switch_creative:update_player(player) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
local privstring = default_privs |
|
|
|
local privstring = noarea_privs |
|
|
|
if smallest_area.id and switch_creative.area_privs[smallest_area.id] then |
|
|
|
privstring = switch_creative.area_privs[smallest_area.id] |
|
|
|
end |
|
|
|