https://github.com/pequla/serverping
Very simple and fast Minecraft server status library using the Server List Ping protocol
https://github.com/pequla/serverping
gson java-11 java11 minecraft minecraft-library minecraft-ping
Last synced: 6 months ago
JSON representation
Very simple and fast Minecraft server status library using the Server List Ping protocol
- Host: GitHub
- URL: https://github.com/pequla/serverping
- Owner: Pequla
- License: mit
- Created: 2021-04-18T13:41:48.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-02-12T09:10:13.000Z (over 2 years ago)
- Last Synced: 2025-03-24T14:51:22.027Z (7 months ago)
- Topics: gson, java-11, java11, minecraft, minecraft-library, minecraft-ping
- Language: Java
- Homepage: https://wiki.vg/Server_List_Ping
- Size: 23.4 KB
- Stars: 11
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ServerPing
Are you looking for a simple-to-use Minecraft Server List Ping library with a permissive licence? Look no further, you
just found it.### Usage
If you are using Maven just add the following to your `pom.xml`
```xml
pequla-repo
https://maven.pequla.com/releases
com.pequla
server-ping
1.2
com.google.code.gson
gson
2.10.1
```
### Example
```java
public class ServerPingExample {
public static void main(String[] args) throws IOException {
InetAddress address = InetAddress.getByName("play.beocraft.net");
int port = 25565;
ServerPing ping = new ServerPing(new InetSocketAddress(address, port));
StatusResponse response = ping.fetchData();
System.out.println(response.getPlayers().getOnline());
}
}
```