chunkedge_protocol/packets/configuration/disconnect_s2c.rs
1use std::borrow::Cow;
2
3use chunkedge_binary::{Decode, Encode, TextComponent};
4
5use crate::{Packet, PacketState};
6
7#[derive(Clone, Debug, Encode, Decode, Packet)]
8#[packet(state = PacketState::Configuration)]
9/// Sent by the server to the client to disconnect them. The reason is displayed
10/// to the client.
11pub struct DisconnectS2c<'a> {
12 pub reason: Cow<'a, TextComponent>,
13}