HowTo/Events: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 11: Line 11:


==Example==
==Example==
'''JS, Server-Side:'''
{{JSCode|1=addEventHandler('onPlayerJoined', function(event,client)
{
    message(client.player.name + ' has joined the server!', COLOUR_GREEN);
})}}


'''Lua, Server-Side:'''
'''Lua, Server-Side:'''
6,834

edits

Navigation menu