diff --git a/nopvp.lua b/nopvp.lua index ff6135a..0fc4e2b 100644 --- a/nopvp.lua +++ b/nopvp.lua @@ -15,6 +15,10 @@ minetest.register_on_punchplayer(function(player, hitter, time_from_last_punch, return false end + if minetest.check_player_privs(player_name, {arena=true}) then + return false + end + if not minetest.check_player_privs(player_name, {pvp=true}) then return true end