For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server/classes/ScriptEventCommandMessageAfterEventSignal.md.

Class: ScriptEventCommandMessageAfterEventSignal

event

Beta

允许注册一个响应入站 /scriptevent 命令的事件处理器。

Allows for registering an event handler that responds to inbound /scriptevent commands.

Methods

subscribe()

subscribe(callback, options?): (arg0) => void

World Mutation Early Execution Beta

Parameters

callback

(arg0) => void

options?

ScriptEventMessageFilterOptions

Returns

(arg0) => void

Remarks

注册一个新的 ScriptEvent 处理器。

Registers a new ScriptEvent handler.


unsubscribe()

unsubscribe(callback): void

World Mutation Early Execution Beta

Parameters

callback

(arg0) => void

Returns

void

Remarks

取消订阅 ScriptEvent 事件的特定处理器。

Unsubscribes a particular handler for a ScriptEvent event.

同领域相关