Search Results for

    Show / Hide Table of Contents

    Class PreAuthenticatingEventArgs

    Contains all information before pre-authenticating a player.

    Inheritance
    System.Object
    PreAuthenticatingEventArgs
    Implements
    IExiledEvent
    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 PreAuthenticatingEventArgs : IExiledEvent

    Constructors

    | Improve this Doc View Source

    PreAuthenticatingEventArgs(String, String, Int64, CentralAuthPreauthFlags, String, Byte[], ConnectionRequest, Int32)

    Initializes a new instance of the PreAuthenticatingEventArgs class.

    Declaration
    public PreAuthenticatingEventArgs(string userId, string ipAddress, long expiration, CentralAuthPreauthFlags flags, string country, byte[] signature, ConnectionRequest request, int readerStartPosition)
    Parameters
    Type Name Description
    System.String userId
    System.String ipAddress
    System.Int64 expiration
    CentralAuthPreauthFlags flags
    System.String country
    System.Byte[] signature
    LiteNetLib.ConnectionRequest request
    System.Int32 readerStartPosition

    Properties

    | Improve this Doc View Source

    Country

    Gets the player's country.

    Declaration
    public string Country { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    Expiration

    Gets the request's expiration.

    Declaration
    public long Expiration { get; }
    Property Value
    Type Description
    System.Int64
    | Improve this Doc View Source

    Flags

    Gets the flags.

    Declaration
    public CentralAuthPreauthFlags Flags { get; }
    Property Value
    Type Description
    CentralAuthPreauthFlags
    | Improve this Doc View Source

    IpAddress

    Gets the player's IP address.

    Declaration
    public string IpAddress { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    IsAllowed

    Gets a value indicating whether the player can be authenticated or not.

    Declaration
    public bool IsAllowed { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    ReaderStartPosition

    Gets the reader starting position for reading the preauth.

    Declaration
    public int ReaderStartPosition { get; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    Request

    Gets the connection request.

    Declaration
    public ConnectionRequest Request { get; }
    Property Value
    Type Description
    LiteNetLib.ConnectionRequest
    | Improve this Doc View Source

    Signature

    Gets the request's signature.

    Declaration
    public byte[] Signature { get; }
    Property Value
    Type Description
    System.Byte[]
    | Improve this Doc View Source

    UserId

    Gets the player's user id.

    Declaration
    public string UserId { get; }
    Property Value
    Type Description
    System.String

    Methods

    | Improve this Doc View Source

    Delay(Byte, Boolean)

    Delays a pre-authentincating player.

    Declaration
    public void Delay(byte seconds, bool isForced)
    Parameters
    Type Name Description
    System.Byte seconds

    The seconds of delay.

    System.Boolean isForced

    Indicates whether the delay is forced or not.

    | Improve this Doc View Source

    Redirect(UInt16, Boolean)

    Redirects a pre-authentincating player.

    Declaration
    public void Redirect(ushort port, bool isForced)
    Parameters
    Type Name Description
    System.UInt16 port

    The redirection port.

    System.Boolean isForced

    Indicates whether the redirection is forced or not.

    | Improve this Doc View Source

    Reject(RejectionReason, Boolean)

    Rejects a pre-authentincating player.

    Declaration
    public void Reject(RejectionReason reason, bool isForced)
    Parameters
    Type Name Description
    RejectionReason reason

    The RejectionReason.

    System.Boolean isForced

    Indicates whether the rejection is forced or not.

    | Improve this Doc View Source

    Reject(String, Boolean)

    Rejects a pre-authentincating player.

    Declaration
    public void Reject(string customReason, bool isForced)
    Parameters
    Type Name Description
    System.String customReason

    The rejection custom reason.

    System.Boolean isForced

    Indicates whether the rejection is forced or not.

    | Improve this Doc View Source

    RejectBanned(String, DateTime, Boolean)

    Rejects a pre-authentincating banned player.

    Declaration
    public void RejectBanned(string banReason, DateTime expiration, bool isForced)
    Parameters
    Type Name Description
    System.String banReason

    The ban reason.

    System.DateTime expiration

    The ban System.DateTime expiration.

    System.Boolean isForced

    Indicates whether the rejection is forced or not.

    | Improve this Doc View Source

    RejectBanned(String, Int64, Boolean)

    Rejects a pre-authentincating banned player.

    Declaration
    public void RejectBanned(string banReason, long expiration, bool isForced)
    Parameters
    Type Name Description
    System.String banReason

    The ban reason.

    System.Int64 expiration

    The ban expiration.

    System.Boolean isForced

    Indicates whether the rejection is forced or not.

    Implements

    IExiledEvent

    Extension Methods

    ReflectionExtensions.CopyProperties(Object, Object)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX