This commit is contained in:
Isidor Zeuner 2017-11-11 18:03:56 +01:00
parent 840f5e8c1f
commit 6174196b50
1 changed files with 6 additions and 1 deletions

View File

@ -9,7 +9,12 @@ area_protection.interaction_restrictions = function(
player_name player_name
) )
if area_protection.areas then if area_protection.areas then
if minetest.check_player_privs(name, {areas = true}) then if minetest.check_player_privs(
player_name,
{
areas = true
}
) then
return false return false
end end
return true return true