Explorar o código

added 7 Days To Dir support

Daniel Gibbs %!s(int64=11) %!d(string=hai) anos
pai
achega
2bc60f93f6
Modificáronse 1 ficheiros con 16 adicións e 3 borrados
  1. 16 3
      functions/fn_serverconfig

+ 16 - 3
functions/fn_serverconfig

@@ -2,7 +2,7 @@
 # LGSM fn_serverconfig function
 # LGSM fn_serverconfig function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://danielgibbs.co.uk
 # Website: http://danielgibbs.co.uk
-# Version: 151214
+# Version: 211214
 
 
 fn_arma3config(){
 fn_arma3config(){
 echo ""
 echo ""
@@ -122,6 +122,15 @@ sleep 1
 echo ""
 echo ""
 }
 }
 
 
+fn_unity3dconfig(){
+echo ""
+echo "Loading Configs"
+echo "================================="
+sleep 1
+cp -v serverconfig.xml ${servercfg}
+sleep 1
+}
+
 fn_unreal2config(){
 fn_unreal2config(){
 echo ""
 echo ""
 echo "Loading Configs"
 echo "Loading Configs"
@@ -148,12 +157,16 @@ sleep 1
 echo ""
 echo ""
 }
 }
 
 
-
+echo ""
 echo "Downloading lgsm-default.cfg"
 echo "Downloading lgsm-default.cfg"
 echo "================================="
 echo "================================="
 sleep 1
 sleep 1
 cd "${servercfgdir}"
 cd "${servercfgdir}"
-if [ "${gamename}" == "ARMA 3" ]; then
+
+
+if [ "${gamename}" == "7 Days To Die" ]; then
+	fn_unity3dconfig
+elif [ "${gamename}" == "ARMA 3" ]; then
 	wget --no-check-certificate -nv -N https://raw.githubusercontent.com/dgibbs64/linuxgameservers/master/Arma3/cfg/lgsm-default.cfg
 	wget --no-check-certificate -nv -N https://raw.githubusercontent.com/dgibbs64/linuxgameservers/master/Arma3/cfg/lgsm-default.cfg
 	fn_arma3config
 	fn_arma3config
 elif [ "${gamename}" == "Blade Symphony" ]; then
 elif [ "${gamename}" == "Blade Symphony" ]; then