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[]];
}
Type declaration
admin
Command : [text: string, nodes: MessageNode[]]Fires on the result of running an admin command via
!admin
.chat: [message: string, player: Player, nodes: MessageNode[]]
Fires when a player chat message is received.
collected: [text: string, player: Player, nodes: MessageNode[]]
Fires when a player has collected their remaining items from the multi-world.
connected: [text: string, player: Player, tags: string[], nodes: MessageNode[]]
Fires when a client connects to the room session.
countdown: [text: string, value: number, nodes: MessageNode[]]
Fires when a countdown message is received.
disconnected: [text: string, player: Player, nodes: MessageNode[]]
Fires when a client disconnects from the room session.
goaled: [text: string, player: Player, nodes: MessageNode[]]
Fires when a connected player has met their goal condition.
item
Cheated : [text: string, item: Item, nodes: MessageNode[]]Fires when another player is sent a cheated item.
item
Hinted : [text: string, item: Item, found: boolean, nodes: MessageNode[]]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.
item
Sent : [text: string, item: Item, nodes: MessageNode[]]Fires when another player is sent an item (except for cheated items).
message: [text: string, nodes: MessageNode[]]
Fires when any kind of message is received.
released: [text: string, player: Player, nodes: MessageNode[]]
Fires when a player has released their remaining items to the multi-world.
server
Chat : [message: string, nodes: MessageNode[]]Fires when a server chat message is received.
tags
Updated : [text: string, player: Player, tags: string[], nodes: MessageNode[]]Fires when a client updates their tags.
tutorial: [text: string, nodes: MessageNode[]]
Fires when tutorial-like information is received, such as on first connection explaining
!help
.user
Command : [text: string, nodes: MessageNode[]]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.