Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeantSerk committed Sep 21, 2019
2 parents 4a3d4e8 + 4849cec commit 6e93824
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}");
}
Expand Down

0 comments on commit 6e93824

Please sign in to comment.