21
edits
No edit summary |
(Since the event doesn't exist client-side, I made it server-side only. I also added an example) |
||
Line 1: | Line 1: | ||
{{ScriptItem | {{ScriptItem | ||
|endpoint = | |endpoint = server | ||
|type = event | |type = event | ||
|name = onPlayerJoined | |name = onPlayerJoined | ||
Line 8: | Line 8: | ||
|parameter1 = Client client The client that has connected to the server. | |parameter1 = Client client The client that has connected to the server. | ||
|notes = {{Shared/PlayerConnectionEvents}} | |notes = {{Shared/PlayerConnectionEvents}} | ||
|exampleJSSS = | |||
addEventHandler('OnPlayerJoined', (event, client) => { | |||
messageClient(`Hello ${client.name}, welcome to my server! 👋`, client, COLOUR_YELLOW); | |||
}); | |||
}} | }} |
edits