fix(javaPing): default `protocolVersion` value

This commit is contained in:
Egornya 2023-12-08 16:16:30 +04:00 committed by GitHub
parent d9bf4cfb3f
commit 354fa212a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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>}