Class BanningEventArgs
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
targetPlayerThe ban target.
issuerPlayerThe ban issuer.
commandSenderICommandSenderThe ban command sender.
durationlongThe ban seconds duration.
reasonstringThe ban reason.
fullMessagestringThe ban full message.
isAllowedboolIndicates whether the event can be executed or not.
Properties
Duration
Gets or sets the ban duration.
public long Duration { get; set; }