Type Alias MessageEvents
adminCommand: [text: string, nodes: MessageNode[]];
chat: [message: string, player: Player, nodes: MessageNode[]];
collected: [text: string, player: Player, nodes: MessageNode[]];
connected: [
text: string,
player: Player,
tags: string[],
nodes: MessageNode[],
];
countdown: [text: string, value: number, nodes: MessageNode[]];
disconnected: [text: string, player: Player, nodes: MessageNode[]];
goaled: [text: string, player: Player, nodes: MessageNode[]];
itemCheated: [text: string, item: Item, nodes: MessageNode[]];
itemHinted: [
text: string,
item: Item,
found: boolean,
nodes: MessageNode[],
];
itemSent: [text: string, item: Item, nodes: MessageNode[]];
message: [text: string, nodes: MessageNode[]];
released: [text: string, player: Player, nodes: MessageNode[]];
serverChat: [message: string, nodes: MessageNode[]];
tagsUpdated: [
text: string,
player: Player,
tags: string[],
nodes: MessageNode[],
];
tutorial: [text: string, nodes: MessageNode[]];
userCommand: [text: string, nodes: MessageNode[]];
}
Properties
adminCommand
Fires on the result of running an admin command via !admin.
chat
Fires when a player chat message is received.
collected
Fires when a player has collected their remaining items from the multi-world.
connected
Fires when a client connects to the room session.
countdown
Fires when a countdown message is received.
disconnected
Fires when a client disconnects from the room session.
goaled
Fires when a connected player has met their goal condition.
itemCheated
Fires when another player is sent a cheated item.
itemHinted
Fires when a hint-style message is received.
Param: nodes
An array of message nodes in this message with additional context for each textual component.
Remarks
This event is for hint messages received. To track more information on when hints are updated, utilize one of the hint-type events on ItemsManager instead.
itemSent
Fires when another player is sent an item (except for cheated items).
message
Fires when any kind of message is received.
released
Fires when a player has released their remaining items to the multi-world.
serverChat
Fires when a server chat message is received.
tagsUpdated
Fires when a client updates their tags.
tutorial
Fires when tutorial-like information is received, such as on first connection explaining !help.
userCommand
Fires on the result of running a user command, such as !status.
An interface with all supported message events and their respective callback arguments. To be called from MessageManager.