Id: 9
Hex: 09
Bin: 00001001
Sent by the server and the client
Sends or receives a message from the player. Every variant's field can contain Minecraft's formatting codes.
Fields:
Name | Type |
---|---|
type | ubyte |
? | bool |
Variants:
Variant | Field | Value |
---|---|---|
Raw | type | 0 |
Chat | type | 1 |
Translation | type | 2 |
Popup | type | 3 |
Jukebox Popup | type | 4 |
Tip | type | 5 |
System | type | 6 |
Whisper | type | 7 |
Announcement | type | 8 |
Raw message that will be printed in the chat as it is.
Additional Fields:
Name | Type |
---|---|
message | string |
xuid | string |
Chat message sent by the player to the server. If sent from the server it will display as <sender> message
.
Additional Fields:
Name | Type |
---|---|
sender | string |
message | string |
xuid | string |
Case sensitive name of the player that has sent the message.
Message sent by the player. It should be unformatted (regular expression: ยง[a-fA-F0-9k-or]
) before being processed as chat message by the server.
Sends a message that will be translated client-side using the player's language.
Additional Fields:
Name | Type |
---|---|
message | string |
parameters | string[] |
A message in the game's language file.
Parameters that will be placed instead of the replacement symbols (%1, %2, etc...).
Displays popups messages for one tick before fading out. The popup messages are displayed at the centre of the screen and are not automatically aligned horizontally.
Additional Fields:
Name | Type |
---|---|
title | string |
subtitle | string |
Additional Fields:
Name | Type |
---|---|
message | string |
parameters | string[] |
Displays a tip message for one tick before fading out. The tip message is displayed on top of the inventory bar and can contain multiple lines separated with \n
.
Additional Fields:
Name | Type |
---|---|
message | string |
Additional Fields:
Name | Type |
---|---|
message | string |
Sends a whisper message to the client that will be displayed in the format sender has whispered to you: message
.
Additional Fields:
Name | Type |
---|---|
sender | string |
message | string |
Additional Fields:
Name | Type |
---|---|
announcer | string |
message | string |