Class UnturnedPlayerBanningEvent
Inheritance
System.Object
UnturnedPlayerBanningEvent
Assembly: OpenMod.Unturned.dll
Syntax
public class UnturnedPlayerBanningEvent : UnturnedPlayerEvent, IBanningPlayerEvent, IPlayerEvent, IEvent, ICancellableEvent
Constructors
|
Improve this Doc
View Source
UnturnedPlayerBanningEvent(UnturnedPlayer, String, String, Nullable<IPAddress>, IEnumerable<Byte[]>, Nullable<String>, TimeSpan)
Declaration
public UnturnedPlayerBanningEvent(UnturnedPlayer playerToBan, string instigatorId, string instigatorType, IPAddress? addressBan, IEnumerable<byte[]> hwidsToBan, string? reason, TimeSpan duration)
Parameters
Type |
Name |
Description |
UnturnedPlayer |
playerToBan |
|
System.String |
instigatorId |
|
System.String |
instigatorType |
|
System.Nullable<IPAddress> |
addressBan |
|
IEnumerable<System.Byte[]> |
hwidsToBan |
|
System.Nullable<System.String> |
reason |
|
TimeSpan |
duration |
|
|
Improve this Doc
View Source
UnturnedPlayerBanningEvent(UnturnedPlayer, String, String, Nullable<IPAddress>, Nullable<String>, TimeSpan)
Declaration
public UnturnedPlayerBanningEvent(UnturnedPlayer playerToBan, string instigatorId, string instigatorType, IPAddress? addressBan, string? reason, TimeSpan duration)
Parameters
Type |
Name |
Description |
UnturnedPlayer |
playerToBan |
|
System.String |
instigatorId |
|
System.String |
instigatorType |
|
System.Nullable<IPAddress> |
addressBan |
|
System.Nullable<System.String> |
reason |
|
TimeSpan |
duration |
|
Properties
|
Improve this Doc
View Source
AddressToBan
Declaration
public IPAddress? AddressToBan { get; }
Property Value
Type |
Description |
System.Nullable<IPAddress> |
|
|
Improve this Doc
View Source
Duration
Declaration
public TimeSpan Duration { get; set; }
Property Value
Type |
Description |
TimeSpan |
|
|
Improve this Doc
View Source
HwidsToBan
Declaration
public IEnumerable<byte[]>? HwidsToBan { get; }
Property Value
Type |
Description |
System.Nullable<IEnumerable<System.Byte[]>> |
|
|
Improve this Doc
View Source
InstigatorId
Declaration
public string InstigatorId { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
InstigatorType
Declaration
public string InstigatorType { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
IPToBan
Declaration
public uint IPToBan { get; }
Property Value
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
IsCancelled
Declaration
public bool IsCancelled { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Reason
Declaration
public string? Reason { get; set; }
Property Value
Type |
Description |
System.Nullable<System.String> |
|
Implements
Extension Methods