|
|
@ -703,6 +703,27 @@ fn_info_config_wolfensteinenemyterritory(){ |
|
|
|
fi |
|
|
|
} |
|
|
|
|
|
|
|
fn_info_config_squad(){ |
|
|
|
if [ ! -f "${servercfgfullpath}" ]; then |
|
|
|
servername="${unavailable}" |
|
|
|
maxplayers="${unavailable}" |
|
|
|
else |
|
|
|
servername="$(cat ${servercfgfullpath} | grep "ServerName=" | cut -c13- | rev | cut -c3- | rev)" |
|
|
|
maxplayers="$(cat ${servercfgfullpath} | grep "MaxPlayers=" | cut -c12-)" |
|
|
|
fi |
|
|
|
|
|
|
|
if [ ! -f "${servercfgdir}/Rcon.cfg" ]; then |
|
|
|
rconport=${unavailable} |
|
|
|
rconpassword=${unavailable} |
|
|
|
else |
|
|
|
rconport=$(cat ${servercfgdir}/Rcon.cfg | grep "Port=" | cut -c6-) |
|
|
|
rconpassword=$(cat ${servercfgdir}/Rcon.cfg | grep "Password=" | cut -c6-) |
|
|
|
if [ -z "${rconpassword}" ]; then |
|
|
|
rconpassword="${cyan}DISABLED${default}" |
|
|
|
fi |
|
|
|
fi |
|
|
|
} |
|
|
|
|
|
|
|
# Just Cause 2 |
|
|
|
if [ "${engine}" == "avalanche" ]; then |
|
|
|
fn_info_config_avalanche |
|
|
@ -787,4 +808,6 @@ elif [ "${gamename}" == "Wolfenstein: Enemy Territory" ]; then |
|
|
|
fn_info_config_wolfensteinenemyterritory |
|
|
|
elif [ "${gamename}" == "Multi Theft Auto" ]; then |
|
|
|
fn_info_config_mta |
|
|
|
elif [ "${gamename}" == "Squad"]; then |
|
|
|
fn_info_config_squad |
|
|
|
fi |
|
|
|