OnPlayerSpawn
This event is triggered when a player spawns.
C# Syntax
[ServerEvent(Event.PlayerSpawn)]
Parameters
- player: parameter input should be in Player type
Example
[ServerEvent(Event.PlayerSpawn)]
public void OnPlayerSpawn(Player player)
{
player.SendChatMessage($"You have spawned in {player.Name}.");
}