mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
Minecraft implementation (#6)
* Initial minecraft support * Made previews_chat an option * Better error handling and removed version structure * Minecraft Server types * Fixed compilation and renamed stuff * 'extract till you drop!' extracted sockets * extracted java version and fixed socket udp receive * Legacy 1.4 and 1.6 implementation (incomplete) * Furter implementation * Implementations work * Protocol beta v1.8+ implemented * Removed bedrock support * Added auto query * Renamed minecraft to mc and added to md's * Docs, renames and small optimization changes * Changed java version to be able to return None on players sample
This commit is contained in:
parent
974e093e23
commit
ee0223a7a3
23 changed files with 810 additions and 80 deletions
|
|
@ -32,6 +32,12 @@ pub enum GDError {
|
|||
SocketBind(String),
|
||||
/// Invalid input.
|
||||
InvalidInput(String),
|
||||
/// Couldn't create a socket connection.
|
||||
SocketConnect(String),
|
||||
/// Couldn't parse a json string.
|
||||
JsonParse(String),
|
||||
/// Couldn't parse a json string.
|
||||
AutoQuery(String),
|
||||
}
|
||||
|
||||
impl fmt::Display for GDError {
|
||||
|
|
@ -48,6 +54,9 @@ impl fmt::Display for GDError {
|
|||
GDError::DnsResolve(details) => write!(f, "DNS Resolve: {details}"),
|
||||
GDError::SocketBind(details) => write!(f, "Socket bind: {details}"),
|
||||
GDError::InvalidInput(details) => write!(f, "Invalid input: {details}"),
|
||||
GDError::SocketConnect(details) => write!(f, "Socket connect: {details}"),
|
||||
GDError::JsonParse(details) => write!(f, "Json parse: {details}"),
|
||||
GDError::AutoQuery(details) => write!(f, "Auto query: {details}"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue