From 6f91a262bbc95a8aea4c9b090ab0e56a8a310581 Mon Sep 17 00:00:00 2001 From: Jimmy Maple <38733055+codingWithJimmy@users.noreply.github.com> Date: Tue, 31 Dec 2024 18:03:58 -0500 Subject: [PATCH] Update query_gamedig.sh - Re-worked if statement for Minecraft servers to not subtract 1 from the length of the player count. --- lgsm/functions/query_gamedig.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/lgsm/functions/query_gamedig.sh b/lgsm/functions/query_gamedig.sh index 071645b49..82939e917 100644 --- a/lgsm/functions/query_gamedig.sh +++ b/lgsm/functions/query_gamedig.sh @@ -32,8 +32,6 @@ if [ "$(command -v gamedig 2>/dev/null)" ]&&[ "$(command -v jq 2>/dev/null)" ]; # numplayers. if [ "${querytype}" == "minecraft" ]; then - gdplayers=$(echo "${gamedigraw}" | jq -re '.players | length-1') - else gdplayers=$(echo "${gamedigraw}" | jq -re '.players | length') fi if [ "${gdplayers}" == "null" ]; then