aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/s_chat_command_signed.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-protocol/src/packets/game/s_chat_command_signed.rs')
-rwxr-xr-xazalea-protocol/src/packets/game/s_chat_command_signed.rs20
1 files changed, 20 insertions, 0 deletions
diff --git a/azalea-protocol/src/packets/game/s_chat_command_signed.rs b/azalea-protocol/src/packets/game/s_chat_command_signed.rs
new file mode 100755
index 00000000..c20f3c6d
--- /dev/null
+++ b/azalea-protocol/src/packets/game/s_chat_command_signed.rs
@@ -0,0 +1,20 @@
+use azalea_buf::AzBuf;
+use azalea_crypto::MessageSignature;
+use azalea_protocol_macros::ServerboundGamePacket;
+
+use super::s_chat::LastSeenMessagesUpdate;
+
+#[derive(Clone, Debug, AzBuf, ServerboundGamePacket)]
+pub struct ServerboundChatCommandSigned {
+ pub command: String,
+ pub timestamp: u64,
+ pub salt: u64,
+ pub argument_signatures: Vec<ArgumentSignature>,
+ pub last_seen_messages: LastSeenMessagesUpdate,
+}
+
+#[derive(Clone, Debug, AzBuf)]
+pub struct ArgumentSignature {
+ pub name: String,
+ pub signature: MessageSignature,
+}