Events
Plugins subscribe to proxy and game events viactx.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:
PluginEventName and PluginEventPayloadMap so on() and once() infer the payload type from the event name.