Class BanningEventArgs
Contains all information before banning a player from the server.
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 BanningEventArgs : KickingEventArgs, IPlayerEvent, IDeniableEvent, IExiledEvent
Constructors
| Improve this Doc View SourceBanningEventArgs(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 SourceDuration
Gets or sets the ban duration.
Declaration
public long Duration { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |