aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/clientbound_disconnect_packet.rs
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-04-24 16:18:51 -0500
committermat <github@matdoes.dev>2022-04-24 16:18:51 -0500
commitb7641ff308aab7840d2a2253ae50f8ee496b2a97 (patch)
treef33eb83f119da5aae08f56a5c7543db15594b01d /azalea-protocol/src/packets/game/clientbound_disconnect_packet.rs
parent97d392f4e5721d8aa8940f253918965ff0b40348 (diff)
downloadazalea-drasl-b7641ff308aab7840d2a2253ae50f8ee496b2a97.tar.xz
1.18.2 support
Diffstat (limited to 'azalea-protocol/src/packets/game/clientbound_disconnect_packet.rs')
-rw-r--r--azalea-protocol/src/packets/game/clientbound_disconnect_packet.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/azalea-protocol/src/packets/game/clientbound_disconnect_packet.rs b/azalea-protocol/src/packets/game/clientbound_disconnect_packet.rs
new file mode 100644
index 00000000..74f5f72e
--- /dev/null
+++ b/azalea-protocol/src/packets/game/clientbound_disconnect_packet.rs
@@ -0,0 +1,9 @@
+use azalea_chat::component::Component;
+use azalea_core::resource_location::ResourceLocation;
+use packet_macros::GamePacket;
+use serde::Deserialize;
+
+#[derive(Clone, Debug, GamePacket)]
+pub struct ClientboundDisconnectPacket {
+ pub reason: Component,
+}