|
|
@ -2,7 +2,7 @@ |
|
|
|
# LGSM fn_details function |
|
|
|
# Author: Daniel Gibbs |
|
|
|
# Website: http://danielgibbs.co.uk |
|
|
|
# Version: 121114 |
|
|
|
# Version: 131114 |
|
|
|
|
|
|
|
fn_sourcedetails(){ |
|
|
|
fn_autoip |
|
|
@ -171,6 +171,38 @@ fi |
|
|
|
echo "" |
|
|
|
} |
|
|
|
|
|
|
|
fn_arma3details(){ |
|
|
|
fn_autoip |
|
|
|
pid=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -E "^${servicename}:"|wc -l) |
|
|
|
echo "" |
|
|
|
echo "${gamename} Server Details" |
|
|
|
echo "============================" |
|
|
|
echo "Server name: ${servername}" |
|
|
|
echo "Server IP: ${ip}:${serverport}" |
|
|
|
echo "Config file: ${servercfgfullpath}" |
|
|
|
echo "" |
|
|
|
echo "Admin Password: ${adminpass}" |
|
|
|
echo "" |
|
|
|
echo "${servername} Ports" |
|
|
|
echo "============================" |
|
|
|
echo "Ports the server is currently using." |
|
|
|
echo "" |
|
|
|
echo "PROTOCOL DESCRIPTION PORT" |
|
|
|
echo "UDP Game port ${serverport}" |
|
|
|
echo "UDP STEAM query port ${queryport}" |
|
|
|
echo "UDP STEAM master traffic port ${masterport}" |
|
|
|
echo "" |
|
|
|
echo "You can change ports by editing the" |
|
|
|
echo "parameters in ${servercfgfullpath}" |
|
|
|
echo "" |
|
|
|
if [ "${pid}" == "0" ]; then |
|
|
|
echo -e "Status:\e[0;31m OFFLINE\e[0;39m" |
|
|
|
else |
|
|
|
echo -e "Status:\e[0;32m ONLINE\e[0;39m" |
|
|
|
fi |
|
|
|
echo "" |
|
|
|
} |
|
|
|
|
|
|
|
if [ "${engine}" == "source" ]||[ "${engine}" == "goldsource" ]; then |
|
|
|
fn_sourcedetails |
|
|
|
elif [ "${engine}" == "unreal" ]||[ "${engine}" == "unreal2" ]; then |
|
|
@ -179,4 +211,8 @@ elif [ "${engine}" == "spark" ]; then |
|
|
|
fn_ns2details |
|
|
|
elif [ "${engine}" == "avalanche" ]; then |
|
|
|
fn_jc2details |
|
|
|
elif [ "${engine}" == "realvirtuality" ]; then |
|
|
|
fn_arma3details |
|
|
|
else |
|
|
|
echo "error: Unable to detect server engine!" |
|
|
|
fi |