From 688809a92d47441c4ea0588d8b977a935da7992b Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sat, 18 Feb 2017 20:04:22 +0000 Subject: [PATCH] Improvements to boserver --- lgsm/functions/info_config.sh | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/lgsm/functions/info_config.sh b/lgsm/functions/info_config.sh index 90c144d80..9bc0b7e80 100644 --- a/lgsm/functions/info_config.sh +++ b/lgsm/functions/info_config.sh @@ -562,17 +562,14 @@ fn_info_config_ballistic_overkill(){ queryport="${zero}" maxplayers="${unavailable}" gamemode="${unavailable}" - gameworld="${unavailable}" else - servername=$(grep "ServerName" "${servercfgfullpath}" | sed 's/^.*value="//' | cut -f1 -d"\"") - serverpassword=$(grep "ServerPassword" "${servercfgfullpath}" | sed 's/^.*value="//' | cut -f1 -d"\"") + servername=$(grep "ServerName" "${servercfgfullpath}" | sed 's/^.*ServerName="//' | cut -f1 -d"\"") + serverpassword=$(grep "Password" "${servercfgfullpath}" | sed 's/^.*Password="//' | cut -f1 -d"\"") port=$(grep "ServerPort" "${servercfgfullpath}" | tr -cd '[:digit:]') queryport=$((port + 1)) maxplayers=$(grep "ServerMaxPlayerCount" "${servercfgfullpath}" | tr -cd '[:digit:]') - gamemode=$(grep "GameMode" "${servercfgfullpath}" | sed 's/^.*value="//' | cut -f1 -d"\"") - gameworld=$(grep "GameWorld" "${servercfgfullpath}" | sed 's/^.*value="//' | cut -f1 -d"\"") - + gamemode=$(grep "GameMode" "${servercfgfullpath}" | sed 's/^.*GameMode="//' | cut -f1 -d"\"") # Not Set servername=${servername:-"NOT SET"} serverpassword=${serverpassword:-"NOT SET"} @@ -580,7 +577,6 @@ fn_info_config_ballistic_overkill(){ queryport=${queryport:-"0"} maxplayers=${maxplayers:-"NOT SET"} gamemode=${gamemode:-"NOT SET"} - gameworld=${gameworld:-"NOT SET"} fi }