import { BasicEvent } from "@skeldjs/events"; import { Connection } from "../../../worker"; import { ClientEvent } from "../client"; /** * Emitted when a client should be banned. This event is emitted specifically to * be handled by a [ban handler plugin](https://skeldjs.github.io/Hindenburg/pages/Setting%20Up/Ban%20Handling). * * Often sent because of the Anti-Cheat. */ export declare class ClientBanEvent extends BasicEvent implements ClientEvent { /** * The client that was banned. */ readonly client: Connection; /** * 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. */ readonly reason: string; /** * The duration, in seconds, of how long the client was banned for. */ readonly duration: number; static eventName: "client.ban"; eventName: "client.ban"; constructor( /** * The client that was banned. */ client: Connection, /** * 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. */ reason: string, /** * The duration, in seconds, of how long the client was banned for. */ duration: number); }