CancellableEvent

Passed as the final argument to cancellable trigger callbacks. Call cancel to stop the underlying game action (e.g. hide a chat message). Scripts:

import { CancellableEvent } from 'ratph6.jim.api';
export function onChat(message: string, event: CancellableEvent): void {
if (message.includes("spam")) event.cancel();
}

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun cancel()
Link copied to clipboard
Link copied to clipboard
fun setCancelled(value: Boolean)