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

Added info on available output and input in the console

Servers like Rust done output anything in the console and dont allow input. This confuses many users. Added an if statement to display details about this. Other servers will also benefit from this. However I dont know which servers these messages apply to currently.
Daniel Gibbs 9 лет назад
Родитель
Сommit
910024ec2c
1 измененных файлов с 7 добавлено и 0 удалено
  1. 7 0
      lgsm/functions/command_console.sh

+ 7 - 0
lgsm/functions/command_console.sh

@@ -10,8 +10,15 @@ local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 check.sh
 fn_print_header
+if [ "${gamename}" == "Rust" ]; then
+	fn_print_information_nl "${gamename} does not produce a verbose output to the console"
+fi
+if [ "${gamename}" == "Rust" ]; then
+	fn_print_information_nl "${gamename} does not allow server commands to be entered in to the console"
+fi
 fn_print_information_nl "Press \"CTRL+b\" then \"d\" to exit console."
 fn_print_warning_nl "Do NOT press CTRL+c to exit."
+echo "	* https://github.com/GameServerManagers/LinuxGSM/wiki/Console"
 echo ""
 if ! fn_prompt_yn "Continue?" Y; then
 	echo Exiting; return