Dinnerbone / mcstatus

A Python class for checking the status of an enabled Minecraft server
http://dinnerbone.com/minecraft/tools/status/
1.11k stars 146 forks source link

[Quick Question] How could I use the exact API, but without the module? Explanation below #121

Closed QuartzWarrior closed 3 years ago

QuartzWarrior commented 3 years ago

How would I use the official Minecraft API? I am using api.mcsrvstat.us but want to use the official mojang api. I am assuming this module uses it, but can't seem to find it in the code.

Thanks!

Iapetus-11 commented 3 years ago

There is a Mojang API, but that is not how this library works, and that API is for something different. This library communicates directly with the servers using different protocols to obtain information from them.

If you're looking for an API that can do this you should just use api.mcsrvstat.us or something similar as there's no official Mojang API for this.

kevinkjt2000 commented 3 years ago

Yeah, it's not in the code because that isn't how this library works. Instead checkout https://wiki.vg/Protocol for a very detailed explanation of Minecraft protocols that this library is using.

QuartzWarrior commented 3 years ago

Ok, well thanks for the quick response.