UNPKG

@bdsx/anticrasher

Version:

simple anti-crasher

22 lines (21 loc) 792 B
import { NetworkIdentifier } from "bdsx/bds/networkidentifier"; import { Player } from "bdsx/bds/player"; import { CANCEL } from "bdsx/common"; import { Event } from "bdsx/eventtarget"; export declare class CrasherDetectedEvent { crasher: Player | undefined; networkIdentifier: NetworkIdentifier; crasherType: anticrasher.Crashers; constructor(crasher: Player | undefined, networkIdentifier: NetworkIdentifier, crasherType: anticrasher.Crashers); } export declare namespace anticrasher { const crasherDetected: Event<(event: CrasherDetectedEvent) => void | CANCEL>; enum Crashers { Unknown = 0, IllegalPositions = 1, InvalidSounds = 2, FoodSpammer = 3, InvalidSkin = 4, DisallowedPacket = 5 } }