diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2016-05-21 16:21:38 +0100 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2016-05-21 16:21:38 +0100 |
commit | a37e8e651e7daf12a3ca2913b4397fdf737f3ca5 (patch) | |
tree | 05c1d370f7f9e01a8c6fec5bf45113ef1ed93b0f /init.lua | |
parent | f02fe24b6138f5beb08ad88cacc0c884c2bd6c60 (diff) |
added "protection_bypass" privelage support
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |