Преглед изворни кода

fix(mta): update xml parsing

The `fn_info_game_mta` function in the `info_game.sh` file has been refactored to update the parameters passed to the `fn_info_game_xml` function. The parameter names have been changed from "port" to "serverport", "httpport" to "httpport", "servername" to "servername", "maxplayers" to "maxplayers", and "ase" to "ase". This change improves code readability and consistency.
Daniel Gibbs пре 2 година
родитељ
комит
7f4111d167
1 измењених фајлова са 5 додато и 5 уклоњено
  1. 5 5
      lgsm/modules/info_game.sh

+ 5 - 5
lgsm/modules/info_game.sh

@@ -1441,11 +1441,11 @@ fn_info_game_mom() {
 # Filetype: conf
 fn_info_game_mta() {
 	if [ -f "${servercfgfullpath}" ]; then
-		fn_info_game_xml "port" "/config/@port"
-		fn_info_game_xml "httpport" "/config/@httpport"
-		fn_info_game_xml "servername" "/config/@servername"
-		fn_info_game_xml "maxplayers" "/config/@maxplayers"
-		fn_info_game_xml "ase" "/config/@ase"
+		fn_info_game_xml "port" "/config/serverport"
+		fn_info_game_xml "httpport" "/config/httpport"
+		fn_info_game_xml "servername" "/config/servername"
+		fn_info_game_xml "maxplayers" "/config/maxplayers"
+		fn_info_game_xml "ase" "/config/ase"
 	fi
 	if [ "${ase}" == "1" ]; then
 		ase="Enabled"