diff --git a/mods/ctf/ctf_bounties/init.lua b/mods/ctf/ctf_bounties/init.lua index 236a5fc..261cabb 100644 --- a/mods/ctf/ctf_bounties/init.lua +++ b/mods/ctf/ctf_bounties/init.lua @@ -44,10 +44,10 @@ local function bounty_player(target) for _, player in pairs(minetest.get_connected_players()) do local name = player:get_player_name() if bountied_player ~= name then - local _, prev_color = ctf_colors.get_color(prev, ctf.player(prev)) + local prev_color = ctf_colors.get_color(prev, ctf.player(prev)).css minetest.chat_send_player(player:get_player_name(), minetest.colorize("#fff326", "Player ") .. - minetest.colorize(prev_color:gsub("0x", "#"), prev) .. + minetest.colorize(prev_color, prev) .. minetest.colorize("#fff326", " no longer has a bounty on their head!")) end end