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

Issue with status and version of the server #102

Closed ParsecTraveler closed 3 years ago

ParsecTraveler commented 3 years ago

Hi! At first: Pretty cool program you got there!

Now the problem: I created a status object with "status = server.status()" and stuff like status.players.max works fine. But if I want to get the version of the server with status.version the string is empty, it just shows nothing at all. Using the command line version 1.16.4 is shown. Now is there something I'm doing wrong or is there a problem on your side?

Iapetus-11 commented 3 years ago

Could you give us both the command you used, and the rest of your code?

ParsecTraveler commented 3 years ago

Okay, I fixed the problem myself :). The "dir()" method mentioned in an other issue was pretty useful. Thanks anyways.

kevinkjt2000 commented 3 years ago

I’m glad it could help! Issues/questions for a specific python project isn’t really meant for teaching python tricks like dir, but I’ve started dropping that knowledge since we each started as a python newbie at some point.