mcping
mcping
is a Rust crate that can ping a Minecraft server and collect ping information such as the MOTD, max player count, player sample, etc.
Note: mcping
currently only supports Minecraft Java edition.
Example
// Ping the server and gather status information and latency.
let = get_status?;
println!;
print!;
println!;
println!;
A more complete example can be found in the cli
example (examples/cli.rs
) and can be run with cargo run --example cli
.