| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
MCServerPing is an API for you to obtain basic information for a Minecraft server.
MCServerPing is available on Maven Central. To use it, add the following dependency to your pom.xml:
<dependency>
<groupId>dev.redcoke</groupId>
<artifactId>mcserverping</artifactId>
</dependency>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());
}
}| Back | FazBrowse Home | New Git URL |