Class ClientBanEvent

Emitted when a client should be banned.

Hierarchy

  • BasicEvent
    • ClientBanEvent

Implements

Properties

eventName: "client.ban" = ...
client: Connection

The client that was banned.

duration: number

The duration, in seconds, of how long the client was banned for.

eventName: "client.ban" = ...
reason: string

The reason for why the client was banned. The Anti-Cheat will simply provide the rule that the client broke to get banned, while a client that is manually banned might have a more verbose description.

Constructors

  • Parameters

    • client: Connection

      The client that was banned.

    • reason: string

      The reason for why the client was banned. The Anti-Cheat will simply provide the rule that the client broke to get banned, while a client that is manually banned might have a more verbose description.

    • duration: number

      The duration, in seconds, of how long the client was banned for.

    Returns ClientBanEvent

Generated using TypeDoc