Skip to content

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.

Member Description
Constructor One ban: a player (uuid and the name it was banned under) or an address.
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.
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).
public string? Address { get; init; }

The banned address without port; null for a player ban.

public DateTimeOffset Created { get; init; }

When the ban was written.

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.

public Uuid? Player { get; init; }

The banned player; null for an address ban.

public string? Reason { get; init; }

The reason shown on the disconnect screen; null for the default text.

public string Source { get; init; }

Who wrote it (“(Unknown)” when nobody said).

Player · Uuid