1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-01-18 03:21:36 +02:00

message on join - fix that player names were missing

This commit is contained in:
Gerkiz 2021-03-16 22:54:07 +01:00
parent fae09298fb
commit 959018aca2

View File

@ -19,8 +19,7 @@ local fetch =
return
end
if type(value) == 'table' then
local message = string.gsub(value.msg, "{name}", player.name)
game.print(message, value.color)
game.print('>> ' .. player.name .. ' << ' .. value.msg, value.color) -- we want the player name to be printed.
end
end
)