Explorar o código

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 %!s(int64=2) %!d(string=hai) anos
pai
achega
7f4111d167
Modificáronse 1 ficheiros con 5 adicións e 5 borrados
  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"