Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 468 Bytes

README.md

File metadata and controls

16 lines (13 loc) · 468 Bytes

Minecraft Status Query

Get information from any unmodded Minecraft server with the built in query protocol.

Usage

import query.*;
MCQuery mcQuery = new MCQuery("my.server.domain", 25565);
QueryResponse response = mcQuery.basicStat();
int players = response.getOnlinePlayers();
// Do other stuff

Examples can be found in src/examples/

Note:

Remember that query protocol must be enabled in your server.properties file with enable-query=true.