Browse Source

Merge pull request #1 from jimmyatSplunk/fix/gamedig

Fix/gamedig
pull/2821/head
Jimmy Maple 5 years ago
committed by GitHub
parent
commit
4429f53220
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      lgsm/functions/query_gamedig.sh

2
lgsm/functions/query_gamedig.sh

@ -30,7 +30,7 @@ if [ "$(command -v gamedig 2>/dev/null)" ]&&[ "$(command -v jq 2>/dev/null)" ];
fi
# numplayers.
gdplayers=$(echo -e "${gamedigraw}" | jq -re '.players')
gdplayers=$(echo -e "${gamedigraw}" | jq -re '.raw.vanilla.raw.players.online')
if [ "${gdplayers}" == "null" ]; then
unset gdplayers
elif [ "${gdplayers}" == "[]" ]; then

Loading…
Cancel
Save