Class SpawnedEventArgs
Contains all information after spawning a player.
Inheritance
System.Object
SpawnedEventArgs
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Exiled.Events.EventArgs.Player
Assembly: Exiled.Events.dll
Syntax
public class SpawnedEventArgs : IPlayerEvent, IExiledEvent
Constructors
| Improve this Doc View SourceSpawnedEventArgs(Player, PlayerRoleBase)
Initializes a new instance of the SpawnedEventArgs class.
Declaration
public SpawnedEventArgs(Player player, PlayerRoleBase oldRole)
Parameters
Type | Name | Description |
---|---|---|
Player | player | the spawned player. |
PlayerRoles.PlayerRoleBase | oldRole | the spawned player's old PlayerRoles.PlayerRoleBase. |
Properties
| Improve this Doc View SourceOldRole
Gets the player's old PlayerRoles.PlayerRoleBase.
Declaration
public Role OldRole { get; }
Property Value
Type | Description |
---|---|
Role |
Player
Gets the Player who spawned.
Declaration
public Player Player { get; }
Property Value
Type | Description |
---|---|
Player |
Reason
Gets the reason for their class change.
Declaration
public SpawnReason Reason { get; }
Property Value
Type | Description |
---|---|
SpawnReason |
SpawnFlags
Gets the spawn flags for their class change.
Declaration
public RoleSpawnFlags SpawnFlags { get; }
Property Value
Type | Description |
---|---|
PlayerRoles.RoleSpawnFlags |