py-mine / mcstatus

A Python library for checking the status of Minecraft servers
https://mcstatus.readthedocs.io
Apache License 2.0
478 stars 37 forks source link

can i execute commands #831

Closed mncrftfrcnm closed 4 months ago

mncrftfrcnm commented 4 months ago

can i execute commands like /say?

ItsDrike commented 4 months ago

No, mcstatus only provides the response from a status packet, i.e. what you would see in the multiplayer server list. There's also support for query protocol, which can be used to get some other data about the server, but neither of these allow for execution of commands.

To do that, you would need to actually have a user login into the server and run this command, or use rcon and access the server's console remotely, both of these are out of scope of mcstatus.

mncrftfrcnm commented 4 months ago

thank you for your answer, @ItsDrike.