feat: server status protocol path implemented

This commit is contained in:
Tamipes 2025-11-29 18:31:14 +01:00
parent b75eec70e0
commit b14d3b599d
10 changed files with 544 additions and 79 deletions

View file

@ -122,3 +122,29 @@ impl Packet {
// }
// }
}
#[derive(Copy, Clone, PartialEq)]
pub enum ProtocolState {
Handshaking,
Status,
Login,
Transfer,
Configuration,
Play,
ShutDown,
}
impl ToString for ProtocolState {
fn to_string(&self) -> String {
match self {
ProtocolState::Handshaking => "Hanshake",
ProtocolState::Status => "Status",
ProtocolState::Login => "Login",
ProtocolState::Configuration => "Configuration ",
ProtocolState::Play => "Play",
ProtocolState::ShutDown => "Shutdown",
ProtocolState::Transfer => "Transfer",
}
.to_string()
}
}