Skip to content

Class PlayerJoinedServerEvent

Namespace: Void.Proxy.Api.Events.Player
Assembly: Void.Proxy.Api.dll

Event that occurs when a player joins a server and both sides are in Play phase.

public record PlayerJoinedServerEvent : IScopedEventWithResult<bool>, IScopedEvent, IEventWithResult<bool>, IEvent, IEquatable<PlayerJoinedServerEvent>

Inheritance

objectPlayerJoinedServerEvent

Implements

IScopedEventWithResult<bool>, IScopedEvent, IEventWithResult<bool>, IEvent, IEquatable<PlayerJoinedServerEvent>

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

Event that occurs when a player joins a server and both sides are in Play phase.

public PlayerJoinedServerEvent(IPlayer Player, IServer Server, ILink Link, bool IsRedirected)

Parameters

Player IPlayer

The player who has joined the server. Cannot be null.

Server IServer

The server that the player has joined. Cannot be null.

Link ILink

The link associated with the player’s connection to the server. Cannot be null.

IsRedirected bool

Properties

IsRedirected

public bool IsRedirected { get; init; }

Property Value

bool

The link associated with the player’s connection to the server. Cannot be null.

public ILink Link { get; init; }

Property Value

ILink

Player

The player who has joined the server. Cannot be null.

public IPlayer Player { get; init; }

Property Value

IPlayer

Result

Gets or sets a value indicating whether the player will be redirected after this event executes.

public bool Result { get; set; }

Property Value

bool

Server

The server that the player has joined. Cannot be null.

public IServer Server { get; init; }

Property Value

IServer

WillBeRedirected

Gets or sets a value indicating whether the player will be redirected after this event executes.

public bool WillBeRedirected { get; set; }

Property Value

bool