Browse Source

Added unreal 4 servername

pull/475/head
Daniel Gibbs 10 years ago
parent
commit
7892d94c6c
  1. 14
      functions/fn_details_config

14
functions/fn_details_config

@ -2,7 +2,7 @@
# LGSM fn_details_config function # LGSM fn_details_config function
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
# Version: 280715 # Version: 090815
# Description: Gets specific details from config files. # Description: Gets specific details from config files.
@ -643,4 +643,16 @@ elif [ "${engine}" == "unreal" ]||[ "${engine}" == "unreal2" ]; then
fi fi
fi fi
elif [ "${engine}" == "unreal4" ]; then
# server name
if [ -f "${servercfgfullpath}" ]; then
servername=$(grep "SessionName=" "${servercfgfullpath}" | sed 's/SessionName=//g')
if [ ! -n "${servername}" ]; then
servername="NOT SET"
fi
else
servername="\e[0;31mUNAVAILABLE\e[0m"
fi
fi fi

Loading…
Cancel
Save