Skip to main content

Events

Plugins subscribe to proxy and game events via ctx.events. Handlers receive a typed payload depending on the event name.

Subscribing

Event list

All payloads extend BaseEventPayload and include timestamp: number.

TypeScript types

Import payload types from @duelsplus/plugin-api for type-safe handlers:
The package uses PluginEventName and PluginEventPayloadMap so on() and once() infer the payload type from the event name.