aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/serverbound_chat_command_packet.rs
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2022-07-29 04:56:21 +0000
committerGitHub <noreply@github.com>2022-07-29 04:56:21 +0000
commitaadf2de3cb751d563e743599a7fb345c08010f5a (patch)
treeaec2a9485c5057f1c148b87e23ee07a7a6b4978b /azalea-protocol/src/packets/game/serverbound_chat_command_packet.rs
parent3e43fc6c502573f9d48d801087e72cded37a30b8 (diff)
parent2211021105a7ce0ce9fcbc18f3b4f03b0f991a10 (diff)
downloadazalea-drasl-aadf2de3cb751d563e743599a7fb345c08010f5a.tar.xz
Merge pull request #8 from mat-1/1.19.1
Support 1.19.1. Signing stuff isn't implemented but auth isn't even in Azalea yet so that's fine.
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.rs15
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,
}