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

Fetch server-info.png #128

Closed regulad closed 3 years ago

regulad commented 3 years ago

Having the ability to get the server's icon would be very much appreciated.

kevinkjt2000 commented 3 years ago

This is already supported in the ping response packet: https://github.com/Dinnerbone/mcstatus/blob/a5522934f44f51f995151f2601dba5423926986d/mcstatus/pinger.py#L182-L185 You'll want to access ping_response.favicon for the PNG data.

See https://wiki.vg/Server_List_Ping#Response for more info.