Scripting/Server/Events/onPlayerConnect

A player has connected. They may still be loading the world, so prefer onPlayerJoin for welcome messages and per-player setup.

Syntax

onPlayerConnect(player)

Arguments

Example

function onPlayerConnect( player )
{
	MessagePlayer( "onPlayerConnect fired", player );
}

This sample was generated from the signature – adapt the values to your gamemode.

Section: Lifecycle and connection

Categories: Server events | Lifecycle and connection