Table of Contents

Class BanningEventArgs

Namespace
Exiled.Events.EventArgs.Player
Assembly
Exiled.Events.dll

Contains all information before banning a player from the server.

public class BanningEventArgs : KickingEventArgs, IPlayerEvent, IDeniableEvent, IExiledEvent
Inheritance
BanningEventArgs
Implements
Inherited Members
Extension Methods

Constructors

BanningEventArgs(Player, Player, ICommandSender, long, string, string, bool)

Initializes a new instance of the BanningEventArgs class.

public BanningEventArgs(Player target, Player issuer, ICommandSender commandSender, long duration, string reason, string fullMessage, bool isAllowed = true)

Parameters

target Player

The ban target.

issuer Player

The ban issuer.

commandSender ICommandSender

The ban command sender.

duration long

The ban seconds duration.

reason string

The ban reason.

fullMessage string

The ban full message.

isAllowed bool

Indicates whether the event can be executed or not.

Properties

Duration

Gets or sets the ban duration.

public long Duration { get; set; }

Property Value

long