aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/serverbound_chat_command_packet.rs
diff options
context:
space:
mode:
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.rs18
1 files changed, 18 insertions, 0 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
new file mode 100644
index 00000000..9ae0b79f
--- /dev/null
+++ b/azalea-protocol/src/packets/game/serverbound_chat_command_packet.rs
@@ -0,0 +1,18 @@
+use std::collections::HashMap;
+
+use packet_macros::{GamePacket, McBuf};
+
+#[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 signed_preview: bool,
+}
+
+#[derive(Clone, Debug, McBuf)]
+pub struct ArgumentSignatures {
+ pub salt: u64,
+ pub signatures: HashMap<String, Vec<u8>>,
+}