diff options
| author | mat <github@matdoes.dev> | 2022-07-21 20:04:33 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-07-21 20:04:33 -0500 |
| commit | c0ca03204f1c507d15ccb2699b69d08bd160139f (patch) | |
| tree | 6029dd02a26c3b8a087fa4fe7d8d2c0592585fa5 /azalea-protocol/src/packets/game/serverbound_chat_command_packet.rs | |
| parent | ec0b6ec06c1607d7bfc9df2fca220f59c700e07b (diff) | |
| download | azalea-drasl-c0ca03204f1c507d15ccb2699b69d08bd160139f.tar.xz | |
1.19.1-rc2
Diffstat (limited to 'azalea-protocol/src/packets/game/serverbound_chat_command_packet.rs')
| -rw-r--r-- | azalea-protocol/src/packets/game/serverbound_chat_command_packet.rs | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/azalea-protocol/src/packets/game/serverbound_chat_command_packet.rs b/azalea-protocol/src/packets/game/serverbound_chat_command_packet.rs index 6371463b..1639deae 100644 --- a/azalea-protocol/src/packets/game/serverbound_chat_command_packet.rs +++ b/azalea-protocol/src/packets/game/serverbound_chat_command_packet.rs @@ -1,19 +1,22 @@ -use std::collections::HashMap; - use azalea_buf::McBuf; +use azalea_crypto::MessageSignature; use packet_macros::GamePacket; +use super::clientbound_player_chat_packet::LastSeenMessagesUpdate; + #[derive(Clone, Debug, McBuf, GamePacket)] pub struct ServerboundChatCommandPacket { pub command: String, // TODO: Choose a real timestamp type pub timestamp: u64, - pub argument_signatures: ArgumentSignatures, + pub salt: i64, + pub argument_signatures: Vec<ArgumentSignature>, pub signed_preview: bool, + pub last_seen_messages: LastSeenMessagesUpdate, } #[derive(Clone, Debug, McBuf)] -pub struct ArgumentSignatures { - pub salt: u64, - pub signatures: HashMap<String, Vec<u8>>, +pub struct ArgumentSignature { + pub name: String, + pub signature: MessageSignature, } |
