fix(javaPing): default `protocolVersion` value
This commit is contained in:
parent
d9bf4cfb3f
commit
354fa212a6
|
@ -117,7 +117,7 @@ function ping(host, port = 25565, cb, timeout = 5000, protocolVersion = -1) {
|
|||
|
||||
/**
|
||||
* Asynchronously ping Minecraft Java server.
|
||||
* The optional `options` argument can be an object with a `port` (default is `25565`) or/and `timeout` (default is `5000`) or/and `protocolVersion` (default is `0`) property.
|
||||
* The optional `options` argument can be an object with a `port` (default is `25565`) or/and `timeout` (default is `5000`) or/and `protocolVersion` (default is `-1`) property.
|
||||
* @param {string} host The Java server address.
|
||||
* @param {import('../types/index.js').PingOptions} options The configuration for pinging Minecraft Java server.
|
||||
* @returns {Promise<import('../types/index.js').JavaPingResponse>}
|
||||
|
|
Loading…
Reference in New Issue