Getting an issue when calling RCONClient.login with MC 1.18.2
Closed this issue · 0 comments
Traceback (most recent call last):
File "D:\Code\Github\VirtualComputerProject\server_tester.py", line 11, in
success = rcon.login(password)
File "C:\Python310\lib\site-packages\mctools\mclient.py", line 377, in login
pack = self.raw_send(self.proto.LOGIN, password)
File "C:\Python310\lib\site-packages\mctools\mclient.py", line 303, in raw_send
pack = self.proto.read()
File "C:\Python310\lib\site-packages\mctools\protocol.py", line 256, in read
pack = RCONPacket.from_bytes(byts)
File "C:\Python310\lib\site-packages\mctools\packet.py", line 87, in from_bytes
reqid, reqtype, payload = RCONEncoder.decode(byts)
File "C:\Python310\lib\site-packages\mctools\encoding.py", line 96, in decode
reqid, reqtype = struct.unpack("<ii", byts[:8])
struct.error: unpack requires a buffer of 8 byte