From 354fa212a63ec1e59a1522593075430cfb5a37ef Mon Sep 17 00:00:00 2001 From: Egornya <100377648+inotflying@users.noreply.github.com> Date: Fri, 8 Dec 2023 16:16:30 +0400 Subject: [PATCH] fix(javaPing): default `protocolVersion` value --- lib/java.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/java.js b/lib/java.js index 3c0bac2..6039e52 100644 --- a/lib/java.js +++ b/lib/java.js @@ -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}