diff --git a/maps/biter_battles_v2/gui.lua b/maps/biter_battles_v2/gui.lua index fa29e3d4..8897985d 100644 --- a/maps/biter_battles_v2/gui.lua +++ b/maps/biter_battles_v2/gui.lua @@ -1,4 +1,5 @@ local Public = {} +local Server = require 'utils.server' local bb_config = require "maps.biter_battles_v2.config" local event = require 'utils.event' @@ -309,7 +310,9 @@ function join_team(player, force_name, forced_join) if not forced_join then local c = player.force.name if global.tm_custom_name[player.force.name] then c = global.tm_custom_name[player.force.name] end - game.print(player.name .. " has joined team " .. c .. "!", {r = 0.98, g = 0.66, b = 0.22}) + local message = table.concat({player.name, " has joined team ", c, "!"}) + game.print(message, {r = 0.98, g = 0.66, b = 0.22}) + Server.to_discord_bold(message) end local i = player.get_inventory(defines.inventory.character_main) i.clear()