Explorar o código

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

Daniel Gibbs hai 5 días
pai
achega
c753a69051

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

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

+ 3 - 1
lgsm/modules/command_stop.sh

@@ -77,12 +77,14 @@ fn_stop_warn_players_command() {
 		warncommand="/announce %s"
 		warncommand="/announce %s"
 	elif [ "${shortname}" == "wmc" ]; then
 	elif [ "${shortname}" == "wmc" ]; then
 		warncommand="alert %s"
 		warncommand="alert %s"
+	elif [ "${shortname}" == "av" ]; then
+		warncommand="/say %s"
 	elif [ "${shortname}" == "fctr" ]; then
 	elif [ "${shortname}" == "fctr" ]; then
 		warncommand="%s"
 		warncommand="%s"
 	elif [ "${engine}" == "source" ] || [ "${engine}" == "source2" ] || [ "${engine}" == "goldsrc" ]; then
 	elif [ "${engine}" == "source" ] || [ "${engine}" == "source2" ] || [ "${engine}" == "goldsrc" ]; then
 		warncommand="say %s"
 		warncommand="say %s"
 	else
 	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
 		local game
 		for game in "${saygames[@]}"; do
 		for game in "${saygames[@]}"; do
 			if [ "${shortname}" == "${game}" ]; then
 			if [ "${shortname}" == "${game}" ]; then