also add contributors to /pumpkin command Co-Authored-By: Fyor <90567841+fyordev@users.noreply.github.com> Co-Authored-By: MartV0 <34748938+martv0@users.noreply.github.com> Co-Authored-By: FabseGP <fabsegp@fabseman.space>
17 lines
377 B
Rust
17 lines
377 B
Rust
use pumpkin_data::packet::clientbound::CONFIG_DISCONNECT;
|
|
use pumpkin_macros::java_packet;
|
|
use serde::Deserialize;
|
|
|
|
#[derive(serde::Serialize, Deserialize)]
|
|
#[java_packet(CONFIG_DISCONNECT)]
|
|
pub struct CConfigDisconnect<'a> {
|
|
pub reason: &'a str,
|
|
}
|
|
|
|
impl<'a> CConfigDisconnect<'a> {
|
|
#[must_use]
|
|
pub fn new(reason: &'a str) -> Self {
|
|
Self { reason }
|
|
}
|
|
}
|