Without the minecraft client, there is a scripted (php, python, whatever) way to ask basic information (what you see in the multiplayer menu) to a minecraft server.
Does anyone knows the few magical bytes to send on the port 25565 ?
minecraft-java-editionminecraft-java-edition-server
Without the minecraft client, there is a scripted (php, python, whatever) way to ask basic information (what you see in the multiplayer menu) to a minecraft server.
Does anyone knows the few magical bytes to send on the port 25565 ?
Best Answer
Before the 1.7 version, a custom TCP protocol was used, and thus some escaped hexadecimal through a netcat / telnet did worked.
Today, they use JSON objects, and a more complex protocol, as implemented on the next link. On the wiki page little python script was linked : https://gist.github.com/barneygale/1209061.
I made this small implementation (freely inspired from last link) which prints the JSON object answered by the Minecraft server (localhost:25565 by default)
Downloadable here https://gist.github.com/qolund/6d10c02f331ca8ee047f
Edit : minimal version, use it with
python3 script.py host port