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

feat(stop): add warning chat commands for Avorion, Craftopia, MTA, Necesse and Rising World (#5033)

Daniel Gibbs 4 дней назад
Родитель
Сommit
c753a69051

+ 1 - 1
lgsm/config-default/config-lgsm/necserver/_default.cfg

@@ -166,7 +166,7 @@ querytype=""
 
 ## Console type
 consoleverbose="yes"
-consoleinteract="no"
+consoleinteract="yes"
 
 ## Game Server Details
 # Do not edit

+ 3 - 1
lgsm/modules/command_stop.sh

@@ -77,12 +77,14 @@ fn_stop_warn_players_command() {
 		warncommand="/announce %s"
 	elif [ "${shortname}" == "wmc" ]; then
 		warncommand="alert %s"
+	elif [ "${shortname}" == "av" ]; then
+		warncommand="/say %s"
 	elif [ "${shortname}" == "fctr" ]; then
 		warncommand="%s"
 	elif [ "${engine}" == "source" ] || [ "${engine}" == "source2" ] || [ "${engine}" == "goldsrc" ]; then
 		warncommand="say %s"
 	else
-		local saygames=(bt cod cod2 cod4 coduo codwaw etl hyt jk2 mc mcb mohaa pmc q2 q3 q4 ql qw rtcw sof2 terraria unt wet wf xnt)
+		local saygames=(bt cod cod2 cod4 coduo codwaw ct etl hyt jk2 mc mcb mohaa mta nec pmc q2 q3 q4 ql qw rtcw rw sof2 terraria unt wet wf xnt)
 		local game
 		for game in "${saygames[@]}"; do
 			if [ "${shortname}" == "${game}" ]; then