aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/serverbound_chat_packet.rs
blob: 7b397b6a95f4b938b39397a26f15acf9072a49b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::packets::game::clientbound_player_chat_packet::LastSeenMessagesUpdate;
use azalea_buf::McBuf;
use azalea_crypto::MessageSignature;
use packet_macros::ServerboundGamePacket;

#[derive(Clone, Debug, McBuf, ServerboundGamePacket)]
pub struct ServerboundChatPacket {
    pub message: String,
    pub timestamp: u64,
    pub salt: u64,
    pub signature: MessageSignature,
    pub signed_preview: bool,
    pub last_seen_messages: LastSeenMessagesUpdate,
}