Edited README.md

This commit is contained in:
CosminPerRam 2022-11-25 18:59:25 +02:00
parent 7b44c5f7eb
commit e36161ce5a
4 changed files with 64 additions and 33 deletions

View file

@ -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)
}
}