Closed MySixSenses closed 3 years ago
I don't think this is an issue with the library, but I'll investigate anyways. What type of server / server software are you using, and can you send me the server.properties file (remember to remove the rcon.password from it)? Also send the OS you're running the code on, and any other relevant information like are you using something like uvloop?
Server is Paper server.properties: https://gist.github.com/MySixSenses/3a77fbdc2261cd5dc5cbc8ad20a64de0 OS: Raspbian/Debian
What version of paper? (Like Minecraft version, like 1.17 or 1.16.5, etc...)
1.16.5
Weird, this library worked just fine when tested on my old 1.16.5 paper server, and still works on my spigot 1.17 server. Maybe double check that you don't have any firewall or something similar in place, I'm not sure what else to check.
Would you mind showing me the entire program?
I just doublechecked that it worked using my Discord bot, Villager Bot. I tested it on a spigot 1.17 server, using the latest version (3.0.2) of this library. Villager Bot runs on Raspberry Pi OS on a Raspberry Pi 4, so I'm pretty sure it's the server you have set up.
Code here: https://gist.github.com/MySixSenses/24bc53b0b09b6d17093311ad764492d1 I'll check firewall.
I looked at the code and everything seems fine. If i had to be a problem with your code I'd try temporarily removing the import for the other rcon library just to see if that fixes anything.
An even weirder thing is that the script doesn't even seem to execute send_command(). Inserting print("testing') at the start of send_command() doesn't print.
Sorry for being an idiot, but I realized that the rcon Client is named rconClient, while Client.send uses Client.
Freezes after printing test twice.