Class PlayerLeft
Event listener args which handles SDG.Unturned.Provider.onServerConnected.
[EventModel(EventSynchronizationContext.Pure)]
public class PlayerLeft : PlayerEvent, IPlayerEvent, IActionLoggableEvent
- Inheritance
-
PlayerLeft
- Implements
- Inherited Members
Properties
DisconnectToken
Token that gets cancelled once the player is about to be disconnected.
public required CancellationToken DisconnectToken { get; init; }
Property Value
LookForward
The forward vector of the player's aim when they left.
public required Vector3 LookForward { get; init; }
Property Value
- Vector3
Remarks
Used for raycasts.
LookPosition
The position of the player's aim when they left.
public required Vector3 LookPosition { get; init; }
Property Value
- Vector3
Remarks
Used for raycasts.
Position
The position of the player when they left.
public required Vector3 Position { get; init; }
Property Value
- Vector3
Rotation
The rotation of the player when they left.
public required Quaternion Rotation { get; init; }
Property Value
- Quaternion
Team
The team the player was on when they left.
public required Team? Team { get; init; }
Property Value
TimeOnline
The amount of time the player was online.
public required TimeSpan TimeOnline { get; init; }
Property Value
Methods
GetActionLogEntry(IServiceProvider, ref ActionLogEntry[]?)
public ActionLogEntry GetActionLogEntry(IServiceProvider serviceProvider, ref ActionLogEntry[]? multipleEntries)
Parameters
serviceProviderIServiceProvidermultipleEntriesActionLogEntry[]