Prechádzať zdrojové kódy

Tower Unite bypasses GSLT input and only informs user

Daniel Gibbs 9 rokov pred
rodič
commit
f2901c0e94
1 zmenil súbory, kde vykonal 13 pridanie a 6 odobranie
  1. 13 6
      lgsm/functions/install_gslt.sh

+ 13 - 6
lgsm/functions/install_gslt.sh

@@ -26,12 +26,19 @@ fn_script_log_info "Get more info and a token here:"
 fn_script_log_info "https://gameservermanagers.com/gslt"
 fn_script_log_info "https://gameservermanagers.com/gslt"
 echo ""
 echo ""
 if [ -z "${autoinstall}" ]; then
 if [ -z "${autoinstall}" ]; then
-	echo "Enter token below (Can be blank)."
-	echo -n "GSLT TOKEN: "
-	read token
-	sed -i -e "s/gslt=\"\"/gslt=\"${token}\"/g" "${rootdir}/${selfname}"
+	if [ "${gamename}" != "Tower Unite" ];then
+		echo "Enter token below (Can be blank)."
+		echo -n "GSLT TOKEN: "
+		read token
+		sed -i -e "s/gslt=\"\"/gslt=\"${token}\"/g" "${rootdir}/${selfname}"
+	fi
 fi
 fi
 sleep 1
 sleep 1
-echo "The GSLT can be changed by editing ${selfname}."
-fn_script_log_info "The GSLT can be changed by editing ${selfname}."
+if [ "${gamename}" == "Tower Unite" ];then
+	echo "The GSLT can be changed by editing ${servercfg}."
+	fn_script_log_info "The GSLT can be changed by editing ${servercfg}."
+else
+	echo "The GSLT can be changed by editing ${selfname}."
+	fn_script_log_info "The GSLT can be changed by editing ${selfname}."
+fi
 echo ""
 echo ""