PrismarineJS / bedrock-protocol

Minecraft Bedrock protocol library, with authentication and encryption
https://prismarinejs.github.io/minecraft-data/?v=bedrock_1.17.10&d=protocol
MIT License
311 stars 71 forks source link

[Feature] Support Query protocol #367

Open hvlxh opened 1 year ago

hvlxh commented 1 year ago

can't just create another socket to send the information of server cuz it will shows 'already using' so better to feature it.

extremeheat commented 1 year ago

I wasn't aware Bedrock servers implemented the pc query protocol. Is there any reason to use that opposed to doing an unconnected pong, like the vanilla client fetches information?

hvlxh commented 1 year ago

query can gives more information than ping like plugins, server software name, players list, etc

extremeheat commented 1 year ago

We don’t appear to implement this in nmp either, per https://github.com/PrismarineJS/node-minecraft-protocol/issues/456. So far no big problems since then, but indeed this is something we could support in the future.