Просмотр исходного кода

Merge remote-tracking branch 'GameServerManagers/master'

Alexander Hurd 9 лет назад
Родитель
Сommit
176c6edd9f
4 измененных файлов с 8 добавлено и 6 удалено
  1. 4 2
      FistfulOfFrags/cfg/lgsm-default.cfg
  2. 1 1
      README.md
  3. 1 1
      lgsm/functions/check_ip.sh
  4. 2 2
      lgsm/functions/update_ts3.sh

+ 4 - 2
FistfulOfFrags/cfg/lgsm-default.cfg

@@ -31,6 +31,7 @@ sv_lan 0
 // "mapcycle_12.txt" - All 12 slot maps for Shootout/2 Team Shootout/4 Team Shootout
 // "mapcycle_32.txt" - All 32 slot maps for Shootout/2 Team Shootout/4 Team Shootout
 // "mapcycle_tp.txt" - All Teamplay maps
+// "mapcycle_vs.txt" - All versus mode maps
 // "mapcycle_gt.txt" - All Ghost Town maps
 mapcyclefile "mapcycle.txt"
 
@@ -48,11 +49,12 @@ mp_timelimit 15
 // 2 = Teamplay
 // 3 = Break Bad
 // 4 = Elimination
+// 5 = Versus
 fof_sv_currentmode 1 
 
 // Teamplay
 // 0 = Free-for-all
-// 1 = Team Deathmatch
+// 1 = Team Deathmatch or Teamplay mode
 mp_teamplay 0
 
 // Team numbers
@@ -121,4 +123,4 @@ sv_logfile 1
 
 // Log server information to only one file.
 // Default: sv_log_onefile 0
-sv_log_onefile 0
+sv_log_onefile 0

+ 1 - 1
README.md

@@ -37,7 +37,7 @@ All FAQ can be found here.
 
 <a href="https://github.com/GameServerManagers/LinuxGSM/wiki/FAQ">https://github.com/GameServerManagers/LinuxGSM/wiki/FAQ</a>
 <h2>Donate</h2>
-If you want to donate to the project you can via PayPal, Flattr or Gratipay. I have had a may kind people show their support by sending me a donation. Any donations you send help cover my server costs and buy me a drink. Cheers!
+If you want to donate to the project you can via PayPal. I have had a may kind people show their support by sending me a donation. Any donations you send help cover my server costs and buy me a drink. Cheers!
 <ul>
 <li><a href="https://gameservermanagers.com/#donate">Donate</a></li>
 </ul>

+ 1 - 1
lgsm/functions/check_ip.sh

@@ -8,7 +8,7 @@
 local commandname="CHECK"
 local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
-if [ "${gamename}" != "TeamSpeak 3" ]; then
+if [ "${gamename}" != "TeamSpeak 3" ] && [ "${gamename}" != "Mumble" ]; then
 	if [ ! -f "/bin/ip" ]; then
 		ipcommand="/sbin/ip"
 	else

+ 2 - 2
lgsm/functions/update_ts3.sh

@@ -48,7 +48,7 @@ fn_update_ts3_currentbuild(){
 	fi
 
 	# Get current build from logs
-	currentbuild=$(cat $(find ./* -name 'ts3server*_0.log' 2> /dev/null | sort | egrep -E -v '${rootdir}/.ts3version' | tail -1) | egrep -o 'TeamSpeak 3 Server ((\.)?[0-9]{1,3}){1,3}\.[0-9]{1,3}' | egrep -o '((\.)?[0-9]{1,3}){1,3}\.[0-9]{1,3}')
+	currentbuild=$(cat $(find ./* -name 'ts3server*_0.log' 2> /dev/null | sort | egrep -E -v '${rootdir}/.ts3version' | tail -1) | egrep -o 'TeamSpeak 3 Server ((\.)?[0-9]{1,3}){1,3}\.[0-9]{1,3}' | egrep -o '((\.)?[0-9]{1,3}){1,3}\.[0-9]{1,3}' | sort -V | tail -1)
 	if [ -z "${currentbuild}" ]; then
 		fn_print_error_nl "Checking for update: teamspeak.com: Current build version not found"
 		fn_script_log_error "Checking for update: teamspeak.com: Current build version not found"
@@ -194,4 +194,4 @@ else
 	fn_update_ts3_currentbuild
 	fn_update_ts3_availablebuild
 	fn_update_ts3_compare
-fi
+fi