diff options
| author | mat <github@matdoes.dev> | 2022-05-26 13:45:48 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-05-26 13:45:48 -0500 |
| commit | 1e145a82b80fb0402e8a64624454d9bfee77bc72 (patch) | |
| tree | ffb016cd6369bf0fbbf3545408f6278d47509a86 /azalea-protocol/src/packets/game/serverbound_chat_command_packet.rs | |
| parent | 3fbbb61c30f0833dd1e07802419ee91ef6cad8e3 (diff) | |
| download | azalea-drasl-1e145a82b80fb0402e8a64624454d9bfee77bc72.tar.xz | |
1.19
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 | 18 |
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>>, +} |
