Reworked the jq flags to produce a count of players based on the length of the original JSON key used. However, I've found that while things like TF2 will produce the proper value, the Minecraft plugin will have an extra user online that is empty. See example below:
"players": [
{
"id": "81eeda65-9002-4f0d-9d3f-b4872e2a2042",
"name": "iamjack1221"
},
{}
]
This update is a major refactor of how LinuxGSM updates itself.
* will now use a version tag if downloading module for the first time.
* added backup repo (Bitbucket) that will be used if Github is unavailable.
* added ./gameserver and module version comparison this will allow instances to be correctly updated if there is a version mismatch.
* UI changes when modules are fetched for the first time
* added sessionname to fix broken tmux session is ./gameserver is called ./gameserver.sh
* change apt to apt-get as recommended by the apt packages when dealing with scripts.
Game server uses regular spacing not "?" between commands.
Changed reservedslots to 0 as this is a saner default.
Change MaxPlayers to FIXEDMAXPLAYERS.
Added RCON port.
The current implementation doesn't use the full file path to determine the existence of the backup directory in relation to the server which means the current stats just looks for the "lgsm/backup" directory. That may work if you're already in the root directory for the server but if you're scripting the backups via cron, you're not likely going to be invoking the backup from the root directory.
* improvements to steamclient.so fix
* added fix to install inconsistent location across distros
* added dev/null for master server
* XDG_DATA_HOME
* prevent check_last_update from restarting server if stopped