Open janispritzkau opened 8 months ago
Also, notice how Minecraft uses UTF-16 code units when splitting responses into multiple packets, but Source RCON Protocol specifies bytes. And unlike the Source Dedicated Server, Minecraft doesn't echo unknown request types, so the multi-packet response handling method doesn't work for Minecraft.
It's unfortunate, how broken the protocol is. And also on my part, for not specifying exactly what this library was made for.
There are many issues with how RCON connections are handled on Minecraft servers, so special hacks are required to make them work robustly.
I took some time to review the decompiled Java source code and created a minimal implementation for Deno:
I may use it as reference for improving/rewriting this library. Not sure how or if to handle non-Minecraft RCON implementations.