|
|
@ -391,11 +391,11 @@ fn_info_config_pstbs(){ |
|
|
|
if [ ! -f "${servercfgfullpath}" ]; then |
|
|
|
servername="${unavailable}" |
|
|
|
maxplayers="${unavailable}" |
|
|
|
numreservedslots="${unavailable}" |
|
|
|
reservedslots="${unavailable}" |
|
|
|
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:]')" |
|
|
|
reservedslots="$(grep "NumReservedSlots=" "${servercfgfullpath}" | tr -cd '[:digit:]')" |
|
|
|
fi |
|
|
|
|
|
|
|
if [ ! -f "${servercfgdir}/Rcon.cfg" ]; then |
|
|
|