Module query

Source
Expand description

Implementation of the Query protocol.

Structs§

BasicStatResponse
A response from the server’s basic query. Taken from wiki.vg
FullStatResponse
A response from the server’s full query. Taken from wiki.vg

Functions§

stat_basic
Perform a basic stat query of the server per the Query Protocol. Note that the server must have query-enabled=true set in its properties to get a response. The query.port property might also be different from server.port.
stat_basic_with_timeout
Similar to stat_basic but with an added argument for timeout.
stat_full
Perform a full stat query of the server per the Query Protocol. Note that the server must have query-enabled=true set in its properties to get a response. The query.port property might also be different from server.port.
stat_full_with_timeout
Similar to stat_full but with an added argument for timeout.