diff --git a/README.md b/README.md index b679ba5..bf3b1d4 100644 --- a/README.md +++ b/README.md @@ -13,16 +13,15 @@ namespace Sample { public class Program { - // Enter the server address - private static string server = "mc.hypixel.net"; - // Enter the server port + private static string address = "mc.hypixel.net"; private static ushort port = 25565; public static void Main(string[] args) { - string json = Minecraft.Status(server, port); - double ping = Minecraft.Ping(server, port); - Console.WriteLine($"Server: {server}:{port}"); + MCServer server = new MCServer(address, port); + string json = server.Status(); + double ping = server.Ping(); + Console.WriteLine($"Server: {server.Address}:{server.Port}"); Console.WriteLine($"Ping: {ping}ms"); Console.WriteLine($"Status: {json}"); }