BanEntry
Namespace Mc.Scripting.Services · Kind class (sealed)
public sealed class BanEntry : IEquatable<BanEntry>One ban: a player (uuid and the name it was banned under) or an address. BanEntry.Expires null means forever.
Constructors
Section titled “Constructors”| Member | Description |
|---|---|
Constructor |
One ban: a player (uuid and the name it was banned under) or an address. |
Constructor
Section titled “Constructor”public BanEntry(Uuid? Player, string? Address, string? Name, DateTimeOffset Created, DateTimeOffset? Expires, string Source, string? Reason)One ban: a player (uuid and the name it was banned under) or an address. BanEntry.Expires null means forever.
Parameters
| Name | Type | Description |
|---|---|---|
Player |
Uuid? |
The banned player; null for an address ban. |
Address |
string? |
The banned address without port; null for a player ban. |
Name |
string? |
The name the player was banned under; null for an address ban. |
Created |
DateTimeOffset |
When the ban was written. |
Expires |
DateTimeOffset? |
When it ends; null = forever. |
Source |
string |
Who wrote it (“(Unknown)” when nobody said). |
Reason |
string? |
The reason shown on the disconnect screen; null for the default text. |
Properties
Section titled “Properties”| Member | Description |
|---|---|
string? Address { get; init; } |
The banned address without port; null for a player ban. |
DateTimeOffset Created { get; init; } |
When the ban was written. |
DateTimeOffset? Expires { get; init; } |
When it ends; null = forever. |
string? Name { get; init; } |
The name the player was banned under; null for an address ban. |
Uuid? Player { get; init; } |
The banned player; null for an address ban. |
string? Reason { get; init; } |
The reason shown on the disconnect screen; null for the default text. |
string Source { get; init; } |
Who wrote it (“(Unknown)” when nobody said). |
Address
Section titled “Address”public string? Address { get; init; }The banned address without port; null for a player ban.
Created
Section titled “Created”public DateTimeOffset Created { get; init; }When the ban was written.
Expires
Section titled “Expires”public DateTimeOffset? Expires { get; init; }When it ends; null = forever.
public string? Name { get; init; }The name the player was banned under; null for an address ban.
Player
Section titled “Player”public Uuid? Player { get; init; }The banned player; null for an address ban.
Reason
Section titled “Reason”public string? Reason { get; init; }The reason shown on the disconnect screen; null for the default text.
Source
Section titled “Source”public string Source { get; init; }Who wrote it (“(Unknown)” when nobody said).