Sends a chat message to the player. You can use color.* codes or color.translate().
| Name | Type | Description |
|---|---|---|
text | string | Message text. Color codes like color.green work. |
on('join', function(e)
e.player:send(color.green .. 'Welcome back, ' .. e.player.name .. '!')
end)
command('ping', function(sender)
sender:send(color.aqua .. 'Pong!')
end)
p:send does nothing. In delayed code, check p:online() first.