Răsfoiți Sursa

updated info config sbots

Daniel Gibbs 7 ani în urmă
părinte
comite
b44e58c45a
1 a modificat fișierele cu 0 adăugiri și 14 ștergeri
  1. 0 14
      lgsm/functions/info_config.sh

+ 0 - 14
lgsm/functions/info_config.sh

@@ -598,25 +598,11 @@ fn_info_config_sbots(){
 	else
 		servername="$(grep "ServerName=" "${servercfgfullpath}" | sed -e 's/^[ \t]//g' -e '/^#/d' -e 's/ServerName//g' | tr -d '=";,:' | sed -e 's/^[ \t]//' -e 's/[ \t]*$//')"
 		maxplayers="$(grep "MaxPlayers=" "${servercfgfullpath}" | tr -cd '[:digit:]')"
-		numreservedslots="$(grep "NumReservedSlots=" "${servercfgfullpath}" | tr -cd '[:digit:]')"
-	fi
-
-	if [ ! -f "${servercfgdir}/Rcon.cfg" ]; then
-		rconport=${unavailable}
-		rconpassword=${unavailable}
-	else
-		rconport=$(grep "Port=" "${servercfgdir}/Rcon.cfg" | tr -cd '[:digit:]')
-		rconpassword=$(grep "Password=" "${servercfgdir}/Rcon.cfg" | sed -e 's/^[ \t]*//g' -e '/^\//d' -e 's/Password//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//')
 	fi
 
-	rconport=${rconport:-"0"}
-	if [ -z "${rconpassword}" ]||[ ${#rconpassword} == 1 ]; then
-		rconpassword="NOT SET"
-	fi
 	servername=${servername:-"NOT SET"}
 	serverpassword=${serverpassword:-"NOT SET"}
 	maxplayers=${maxplayers:-"0"}
-	numreservedslots=${maxplayers:-"0"}
 }
 
 fn_info_config_source(){