From 433509bcdd959736d29c9fb3def269fd04c8aa6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20M=C3=BCller?= <34514239+appgurueu@users.noreply.github.com> Date: Mon, 5 Apr 2021 16:41:51 +0200 Subject: [PATCH] Announce bounties only to the enemy team (#849) --- mods/ctf/ctf_bounties/init.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mods/ctf/ctf_bounties/init.lua b/mods/ctf/ctf_bounties/init.lua index f978c1f..8da0251 100644 --- a/mods/ctf/ctf_bounties/init.lua +++ b/mods/ctf/ctf_bounties/init.lua @@ -14,8 +14,9 @@ end local function announce_all() if bountied_player then for _, player in pairs(minetest.get_connected_players()) do - if bountied_player ~= player:get_player_name() then - announce(player:get_player_name()) + local pname = player:get_player_name() + if ctf.player(pname).team ~= ctf.player(bountied_player).team then + announce(pname) end end end