This question was deleted when I was just about to answer it with some relevant information. I thought that, although it was phrased in a way which made people dislike it, and no code was posted, it was a useful question. As such, I decided to post it here, along with my partial answer. The current code I have has a problem with it, if anyone knows a solution I would be glad to hear it. Also, if anyone knows a cleaner solution (e.g. using the communicate
method of Popen
objects), that would be good too.
As I remember it, the relevant part of the question was this:
How can I use Python to communicate with a Minecraft server? I have a user interface set up, but I am unsure how I can connect to the server and send commands through to it.