aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/serverbound_client_command_packet.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-protocol/src/packets/game/serverbound_client_command_packet.rs')
-rw-r--r--azalea-protocol/src/packets/game/serverbound_client_command_packet.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/azalea-protocol/src/packets/game/serverbound_client_command_packet.rs b/azalea-protocol/src/packets/game/serverbound_client_command_packet.rs
new file mode 100644
index 00000000..c1324256
--- /dev/null
+++ b/azalea-protocol/src/packets/game/serverbound_client_command_packet.rs
@@ -0,0 +1,13 @@
+use azalea_buf::McBuf;
+use packet_macros::ServerboundGamePacket;
+
+#[derive(Clone, Debug, McBuf, ServerboundGamePacket)]
+pub struct ServerboundClientCommandPacket {
+ pub action: Action,
+}
+
+#[derive(McBuf, Clone, Copy, Debug)]
+pub enum Action {
+ PerformRespawn = 0,
+ RequestStats = 1,
+}