From 17b4ed455c379a42cdd0901a2954566f7fef9868 Mon Sep 17 00:00:00 2001 From: Sokomine Date: Tue, 11 May 2021 13:07:12 +0200 Subject: [PATCH] added npc_talk_master --- functions.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/functions.lua b/functions.lua index be96e93..7f440ea 100644 --- a/functions.lua +++ b/functions.lua @@ -3490,6 +3490,7 @@ yl_speak_up.set_muted = function(p_name, obj, set_muted) end -- has the player the right privs? +-- this is used for the "I am your master" talk based configuration; *NOT* for the staffs! yl_speak_up.may_edit_npc = function(player, n_id) if(not(player)) then return false @@ -3498,5 +3499,6 @@ yl_speak_up.may_edit_npc = function(player, n_id) -- is the player allowed to edit this npc? return (yl_speak_up.npc_owner[ n_id ] == pname and minetest.check_player_privs(player, {npc_talk_owner=true}) + or minetest.check_player_privs(player, {npc_talk_master=true}) or minetest.check_player_privs(player, {npc_master=true})) end