Browse Source

sbots update

pull/2096/head
Daniel Gibbs 6 years ago
parent
commit
89d85210f0
  1. 1
      lgsm/functions/info_config.sh
  2. 16
      lgsm/functions/info_messages.sh

1
lgsm/functions/info_config.sh

@ -594,7 +594,6 @@ fn_info_config_sbots(){
if [ ! -f "${servercfgfullpath}" ]; then if [ ! -f "${servercfgfullpath}" ]; then
servername="${unavailable}" servername="${unavailable}"
maxplayers="${unavailable}" maxplayers="${unavailable}"
numreservedslots="${unavailable}"
else 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]*$//')" 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:]')" maxplayers="$(grep "MaxPlayers=" "${servercfgfullpath}" | tr -cd '[:digit:]')"

16
lgsm/functions/info_messages.sh

@ -717,7 +717,7 @@ fn_info_message_mumble(){
echo -e "> ServerQuery\tINBOUND\t${port}\ttcp" echo -e "> ServerQuery\tINBOUND\t${port}\ttcp"
} | column -s $'\t' -t } | column -s $'\t' -t
} }
fn_info_Message_pstbs(){ fn_info_message_pstbs(){
echo -e "netstat -atunp | grep PostScriptum" echo -e "netstat -atunp | grep PostScriptum"
echo -e "" echo -e ""
{ {
@ -860,6 +860,16 @@ fn_info_message_seriousengine35(){
} | column -s $'\t' -t } | column -s $'\t' -t
} }
fn_info_message_sbots(){
echo -e "netstat -atunp | grep blank1"
echo -e ""
{
echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
echo -e "> Game\tINBOUND\t${port}\tudp"
echo -e "> Query\tINBOUND\t${queryport}\tudp"
} | column -s $'\t' -t
}
fn_info_message_sdtd(){ fn_info_message_sdtd(){
fn_info_message_password_strip fn_info_message_password_strip
echo -e "netstat -atunp | grep 7DaysToDie" echo -e "netstat -atunp | grep 7DaysToDie"
@ -1151,7 +1161,7 @@ fn_info_message_select_engine(){
elif [ "${shortname}" == "kf2" ]; then elif [ "${shortname}" == "kf2" ]; then
fn_info_message_kf2 fn_info_message_kf2
elif [ "${shortname}" == "pstbs" ]; then elif [ "${shortname}" == "pstbs" ]; then
fn_info_Message_pstbs fn_info_message_pstbs
elif [ "${gamename}" == "Project Cars" ]; then elif [ "${gamename}" == "Project Cars" ]; then
fn_info_message_projectcars fn_info_message_projectcars
elif [ "${gamename}" == "QuakeWorld" ]; then elif [ "${gamename}" == "QuakeWorld" ]; then
@ -1168,6 +1178,8 @@ fn_info_message_select_engine(){
fn_info_message_squad fn_info_message_squad
elif [ "${gamename}" == "Stationeers" ]; then elif [ "${gamename}" == "Stationeers" ]; then
fn_info_message_stationeers fn_info_message_stationeers
elif [ "${shortname}" == "sbots" ]; then
fn_info_message_sbots
elif [ "${gamename}" == "TeamSpeak 3" ]; then elif [ "${gamename}" == "TeamSpeak 3" ]; then
fn_info_message_teamspeak3 fn_info_message_teamspeak3
elif [ "${gamename}" == "Tower Unite" ]; then elif [ "${gamename}" == "Tower Unite" ]; then

Loading…
Cancel
Save