Search Results for

    Show / Hide Table of Contents

    Class BanningEventArgs

    Contains all information before banning a player from the server.

    Inheritance
    System.Object
    KickingEventArgs
    BanningEventArgs
    Implements
    IPlayerEvent
    IDeniableEvent
    IExiledEvent
    Inherited Members
    KickingEventArgs.Target
    KickingEventArgs.Reason
    KickingEventArgs.FullMessage
    KickingEventArgs.IsAllowed
    KickingEventArgs.Player
    KickingEventArgs.LogBanChange(String, String)
    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 BanningEventArgs : KickingEventArgs, IPlayerEvent, IDeniableEvent, IExiledEvent

    Constructors

    | Improve this Doc View Source

    BanningEventArgs(Player, Player, Int64, String, String, Boolean)

    Initializes a new instance of the BanningEventArgs class.

    Declaration
    public BanningEventArgs(Player target, Player issuer, long duration, string reason, string fullMessage, bool isAllowed = true)
    Parameters
    Type Name Description
    Player target

    The ban target.

    Player issuer

    The ban issuer.

    System.Int64 duration

    The ban seconds duration.

    System.String reason

    The ban reason.

    System.String fullMessage

    The ban full message.

    System.Boolean isAllowed

    Indicates whether the event can be executed or not.

    Properties

    | Improve this Doc View Source

    Duration

    Gets or sets the ban duration.

    Declaration
    public long Duration { get; set; }
    Property Value
    Type Description
    System.Int64

    Implements

    IPlayerEvent
    IDeniableEvent
    IExiledEvent

    Extension Methods

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