Explorar o código

Added game mode and tick rate

Daniel Gibbs %!s(int64=11) %!d(string=hai) anos
pai
achega
206f3577c2
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  1. 10 0
      functions/fn_details

+ 10 - 0
functions/fn_details

@@ -88,6 +88,16 @@ if [ -n "${slots}" ]; then
 	echo -e "\e[34mSlots:\t\e[0m${slots}" >> .fn_details_gameserver
 fi
 
+# game mode
+if [ -n "${gamemode}" ]; then
+	echo -e "\e[34mGame Mode:\t\e[0m${gamemode}" >> .fn_details_gameserver
+fi
+
+# tick rate
+if [ -n "${tickrate}" ]; then
+	echo -e "\e[34mTick rate:\t\e[0m${tickrate}" >> .fn_details_gameserver
+fi
+
 # online status
 if [ "${gamename}" == "Teamspeak 3" ]; then
 	fn_check_ts3status