From d074ef71897597de93aeb52bfdbbc36170541b18 Mon Sep 17 00:00:00 2001 From: Aleksander Mistewicz Date: Sat, 1 Feb 2020 21:33:48 +0100 Subject: [PATCH] Post join message when switching forces to discord When in tournament no messages are sent related to team management. --- maps/biter_battles_v2/team_manager.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/maps/biter_battles_v2/team_manager.lua b/maps/biter_battles_v2/team_manager.lua index 67c27f4f..167f0234 100644 --- a/maps/biter_battles_v2/team_manager.lua +++ b/maps/biter_battles_v2/team_manager.lua @@ -1,4 +1,5 @@ local Public = {} +local Server = require 'utils.server' local forces = { {name = "north", color = {r = 0, g = 0, b = 200}}, @@ -81,6 +82,7 @@ local function switch_force(player_name, force_name) player.force = game.forces[force_name] game.print(player_name .. " has been switched into team " .. force_name .. ".", {r=0.98, g=0.66, b=0.22}) + Server.to_discord_bold(player_name .. " has joined team " .. force_name .. "!") leave_corpse(player) @@ -366,4 +368,4 @@ function Public.init() global.tm_custom_name = {} end -return Public \ No newline at end of file +return Public