Interface in @minecraft/server
Extended by PlayerViolationBeforeEvent
Basalt’s own: the anti-cheat is about to kick a player.
import type { PlayerViolationAfterEvent } from '@minecraft/server';Subscribe to it with world.afterEvents.playerViolation.
Example
Section titled “Example”import { world, type PlayerViolationAfterEvent } from '@minecraft/server';
world.afterEvents.playerViolation.subscribe((event: PlayerViolationAfterEvent) => { console.log('playerViolation', event.player.name, event.check, event.detail);});import { world } from '@minecraft/server';
world.afterEvents.playerViolation.subscribe((event) => { console.log('playerViolation', event.player.name, event.check, event.detail);});Properties
Section titled “Properties”player
Section titled “player”read-only
readonly player: Player;Types
read-only
readonly check: string;The check that saw it: proxy, crash_packet, fly, fast_break, criticals, reach or inventory.
detail
Section titled “detail”read-only
readonly detail: string;What it saw.