Files
factorio-scenario-ExpCluster/modules/commands/me.lua
Cooldude2606 0499ad35ab Dependenices
2019-07-22 17:38:56 +01:00

9 lines
432 B
Lua

local Commands = require 'expcore.commands' --- @dep expcore.commands
Commands.new_command('me','Sends an action message in the chat')
:add_param('action',false) -- action that is done by the player, just text its meaningless
:enable_auto_concat()
:register(function(player,action,raw)
local player_name = player and player.name or '<Server>'
game.print(string.format('* %s %s *',player_name,action),player.chat_color)
end)