From 43ec87541d43ebae13ee9b3abd74cab6389b126a Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 12 Jul 2015 18:33:43 +0100 Subject: [PATCH] Spark does not have a config file --- functions/fn_details_config | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/functions/fn_details_config b/functions/fn_details_config index 7ba6d52c6..5144298eb 100644 --- a/functions/fn_details_config +++ b/functions/fn_details_config @@ -2,10 +2,10 @@ # LGSM fn_details_config function # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 100715 +# Version: 120715 # Description: Gets specific details from config files. -if [ -e "${servercfgfullpath}" ]; then +if [ -e "${servercfgfullpath}" ]||[ "${engine}" == "spark" ]; then if [ "${engine}" == "avalanche" ]; then servername=$(grep -s Name "${servercfgfullpath}"|sed 's/Name//g'|tr -d '=\"; '|sed 's/,//g') @@ -15,9 +15,6 @@ if [ -e "${servercfgfullpath}" ]; then elif [ "${engine}" == "projectzomboid" ]; then servername=$(grep -s PublicName= "${servercfgfullpath}"|sed 's/PublicName=//g'|tr -d '=\";'|sed 's/,//g') - if [ -z "${servername}" ]; then - telnetpass="\e[0;31mno server name set\e[0m" - fi port=$(grep -s DefaultPort= "${servercfgfullpath}"|sed 's/DefaultPort=//g'|tr -cd [:digit:]) elif [ "${engine}" == "realvirtuality" ]; then