Get information from any unmodded Minecraft server with the built in query protocol.
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/
Remember that query protocol must be enabled in your server.properties file with enable-query=true
.