Browse Source

feat(fctr): add function to get the server version via the details command

pull/3956/head
H3o66 3 years ago
parent
commit
5d99382976
  1. 6
      lgsm/functions/info_game.sh

6
lgsm/functions/info_game.sh

@ -653,6 +653,12 @@ fn_info_game_fctr() {
port=${port:-"0"}
rconport=${rconport:-"0"}
rconpassword=${rconpassword:-"NOT SET"}
# get server version if installed
local factoriobin="${executabledir}${executable:1}"
if [ -f "${factoriobin}" ]; then
serverversion=$(${factoriobin} --version | grep "Version:" | awk '{print $2}')
fi
}
fn_info_game_jc2() {

Loading…
Cancel
Save