Chat: when teams are enabled, allies in global chat now appear in white

This commit is contained in:
Zughy 2020-07-26 22:51:09 +02:00
parent 83a04c60a9
commit bbbfc6cab0

View File

@ -9,7 +9,7 @@ minetest.register_on_chat_message(function(p_name, message)
if mod_ref.is_team_chat_default then
arena_lib.send_message_players_in_arena(arena, minetest.colorize(mod_ref.chat_team_color, mod_ref.chat_team_prefix .. minetest.format_chat_message(p_name, message)), arena.players[p_name].teamID)
else
arena_lib.send_message_players_in_arena(arena, minetest.colorize(mod_ref.chat_team_color, mod_ref.chat_all_prefix .. minetest.format_chat_message(p_name, message)), arena.players[p_name].teamID)
arena_lib.send_message_players_in_arena(arena, mod_ref.chat_all_prefix .. minetest.format_chat_message(p_name, message), arena.players[p_name].teamID)
arena_lib.send_message_players_in_arena(arena, minetest.colorize("#ffdddd", mod_ref.chat_all_prefix .. minetest.format_chat_message(p_name, message)), arena.players[p_name].teamID, true)
end
else