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
target
PlayerThe ban target.
issuer
PlayerThe ban issuer.
commandSender
ICommandSenderThe ban command sender.
duration
longThe ban seconds duration.
reason
stringThe ban reason.
fullMessage
stringThe ban full message.
isAllowed
boolIndicates whether the event can be executed or not.
Properties
Duration
Gets or sets the ban duration.
public long Duration { get; set; }