Skip to content

RedCokeDevelopment/MCServerPing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MCServerPing

About

MCServerPing is an API for you to obtain basic information for a Minecraft server.

Supported Inputs

  • IP
  • A record
  • SRV record

Example

import dev.redcoke.mcserverping.MCServerPing;

public class MCServerPingDemo() {
  public static void main(String[] args) {
    var hypixelPingResponse = MCServerPing.getPing("mc.hypixel.net", 25565);
    System.out.println(hypixelPingResponse.getAsJsonString());
  }
}