HowTo/Events: Difference between revisions

no edit summary
No edit summary
 
No edit summary
Line 13: Line 13:


{{LuaCode|1=addEventHandler('onPlayerJoined', function(event,client)
{{LuaCode|1=addEventHandler('onPlayerJoined', function(event,client)
     outputChatBox(client.player.name .. ' has joined the server!', COLOUR_GREEN)
     message(client.player.name .. ' has joined the server!', COLOUR_GREEN)
end)}}
end)}}
6,833

edits