Closed ko-cha closed 3 years ago
Learn how to read error messages. Timed out means mcstatus
timed out whilst attempting to connect to the server, meaning the server is most likely offline. In addition, you shouldn't be using non-async blocking methods like those in asynchronous code, as it will prevent multiple events/commands/tasks from going on at once in your code.
Is this a problem within the Minecraft server? Or is it a problem with the code?
Presumably the line
status = server.status()
raised the timeout
exception. You should consider using a try-catch block. Please consult a Python tutorial on how to catch exceptions.
If you do this, you will get the following error