Bläddra i källkod

fix(info_game): fix RCON port and password details for Squad

This commit adds the RCON port and password to the info_game function for Squad. The values are retrieved from the Rcon.cfg file if it exists in the server configuration directory.
Daniel Gibbs 3 år sedan
förälder
incheckning
cff2224485
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      lgsm/modules/info_game.sh

+ 2 - 2
lgsm/modules/info_game.sh

@@ -2019,8 +2019,8 @@ fn_info_game_squad() {
 		fn_info_game_keyvalue_pairs "maxplayers" "MaxPlayers"
 	fi
 	if [ -f "${servercfgdir}/Rcon.cfg" ]; then
-		fn_info_game_keyvalue_pairs "rconport" "Port"
-		fn_info_game_keyvalue_pairs "rconpassword" "Password"
+		fn_info_game_keyvalue_pairs "rconport" "Port" "${servercfgdir}/Rcon.cfg"
+		fn_info_game_keyvalue_pairs "rconpassword" "Password" "${servercfgdir}/Rcon.cfg"
 	fi
 	maxplayers="${maxplayers:-"0"}"
 	port="${port:-"0"}"