Dinnerbone / mcstatus

A Python class for checking the status of an enabled Minecraft server

Home Page:http://dinnerbone.com/minecraft/tools/status/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Access UUIDs of players?

Kamisoi opened this issue · comments

Hey, sorry for kinda noobish question, but can't find way to obtain player names & uuids at once; is it even possible there?

Have you looked in the .raw part of status?

from mcstatus import MinecraftServer
status = MinecfraftServer("example.com").status()
print(status.raw["players"])

There should be uuid's present if the server is sharing them. They are part of the server list ping response https://wiki.vg/Server_List_Ping#Response which is what the raw status contains.

I was looking into .raw part, but of query rather than status. Thanks for help!