1
0
Derivar 2

Allow admins digging any command block (#525)

Allow admins (i.e. players with the `protection_bypass` privilege) digging any command block
Este cometimento está contido em:
Vitaliy 2020-08-15 15:33:11 +03:00 cometido por GitHub
ascendente 16836b16d6
cometimento 4750925eab
Não foi encontrada uma chave conhecida para esta assinatura, na base de dados
ID da chave GPG: 4AEE18F83AFDEB23
1 ficheiros modificados com 2 adições e 1 eliminações

Ver ficheiro

@ -174,7 +174,8 @@ end
local function can_dig(pos, player)
local meta = minetest.get_meta(pos)
local owner = meta:get_string("owner")
return owner == "" or owner == player:get_player_name()
return owner == "" or owner == player:get_player_name() or
minetest.check_player_privs(player, "protection_bypass")
end
minetest.register_node("mesecons_commandblock:commandblock_off", {