Table of Contents

Class SpawnedEventArgs

Namespace
Exiled.Events.EventArgs.Player
Assembly
Exiled.Events.dll

Contains all information after spawning a player.

public class SpawnedEventArgs : IPlayerEvent, IExiledEvent
Inheritance
SpawnedEventArgs
Implements
Inherited Members
Extension Methods

Constructors

SpawnedEventArgs(Player, PlayerRoleBase)

Initializes a new instance of the SpawnedEventArgs class.

public SpawnedEventArgs(Player player, PlayerRoleBase oldRole)

Parameters

player Player

the spawned player.

oldRole PlayerRoleBase

the spawned player's old role.

Properties

OldRole

Gets the player's old role.

public Role OldRole { get; }

Property Value

Role

Player

Gets the Player who spawned.

public Player Player { get; }

Property Value

Player

Reason

Gets the reason for their class change.

public SpawnReason Reason { get; }

Property Value

SpawnReason

SpawnFlags

Gets the spawn flags for their class change.

public RoleSpawnFlags SpawnFlags { get; }

Property Value

RoleSpawnFlags