Skip to main content

Class: ScriptEventCommandMessageAfterEvent

Returns additional data about a /scriptevent command invocation.

Constructors

new ScriptEventCommandMessageAfterEvent()

private new ScriptEventCommandMessageAfterEvent(): ScriptEventCommandMessageAfterEvent

Returns

ScriptEventCommandMessageAfterEvent

Properties

id

readonly id: string

Remarks

Identifier of this ScriptEvent command message.


initiator?

optional readonly initiator: Entity

Remarks

If this command was initiated via an NPC, returns the entity that initiated the NPC dialogue.


message

readonly message: string

Remarks

Optional additional data passed in with the script event command.


sourceBlock?

optional readonly sourceBlock: Block

Remarks

Source block if this command was triggered via a block (e.g., a commandblock.)


sourceEntity?

optional readonly sourceEntity: Entity

Remarks

Source entity if this command was triggered by an entity (e.g., a NPC).


sourceType

readonly sourceType: ScriptEventSource

Remarks

Returns the type of source that fired this command.