We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1639bd5 commit 6adf4daCopy full SHA for 6adf4da
lgsm/modules/query_gamedig.sh
@@ -42,9 +42,7 @@ if [ "$(command -v "${gamedigbinary}" 2> /dev/null)" ] && [ "$(command -v jq 2>
42
fi
43
44
# numplayers.
45
- if [ "${querytype}" == "minecraft" ]; then
46
- gdplayers=$(echo "${gamedigraw}" | jq -re '.players | length-1')
47
- elif [ "${querytype}" == "teamspeak3" ]; then
+ if [ "${querytype}" == "teamspeak3" ]; then
48
gdplayers=$(echo "${gamedigraw}" | jq -re '.raw.virtualserver_clientsonline')
49
else
50
gdplayers=$(echo "${gamedigraw}" | jq -re '.players | length')
0 commit comments