OpenMod Docs OpenMod Docs
OpenMod Docs OpenMod Docs
OpenMod .NET Plugin Framework.

Class UnturnedPlayerBanningEvent

Inheritance
System.Object
UnturnedPlayerEvent
UnturnedPlayerBanningEvent
Implements
IBanningPlayerEvent
IPlayerEvent
IEvent
ICancellableEvent
Inherited Members
UnturnedPlayerEvent.Player
UnturnedPlayerEvent.IPlayerEvent.Player
Namespace: OpenMod.Unturned.Players.Bans.Events
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

IBanningPlayerEvent
IPlayerEvent
IEvent
ICancellableEvent

Extension Methods

DisposeHelper.DisposeSyncOrAsync(Object)