mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
Edited README.md
This commit is contained in:
parent
7b44c5f7eb
commit
e36161ce5a
4 changed files with 64 additions and 33 deletions
|
|
@ -2,9 +2,9 @@
|
|||
use gamedig::games::mc;
|
||||
|
||||
fn main() {
|
||||
let response = mc::query("localhost", None); //or Some(25565), None is the default protocol port (which is 25565)
|
||||
let response = mc::query("cosminperram.com", Some(26062)); //or Some(25565), None is the default protocol port (which is 25565)
|
||||
match response {
|
||||
Err(error) => println!("Couldn't query, error: {error}"),
|
||||
Ok(r) => println!("{:?}", r)
|
||||
Ok(r) => println!("{:#?}", r)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue