From a37e8e651e7daf12a3ca2913b4397fdf737f3ca5 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Sat, 21 May 2016 16:21:38 +0100 Subject: added "protection_bypass" privelage support --- init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index 24628d6..679cebf 100644 --- a/init.lua +++ b/init.lua @@ -122,7 +122,8 @@ protector.can_dig = function(r, pos, digger, onlyowner, infolevel) -- Delprotect privileged users can override protections - if minetest.check_player_privs(digger, {delprotect = true}) + if ( minetest.check_player_privs(digger, {delprotect = true}) + or minetest.check_player_privs(digger, {protection_bypass = true}) ) and infolevel == 1 then return true end -- cgit v1.2.3