@ -172,7 +172,7 @@ fn_stop_graceful_sdtd(){
fn_stop_tmux
fn_stop_tmux
}
}
# Attempts graceful of source using rcon 'stop' command.
# Attempts graceful of Minecraft using rcon 'stop' command.
fn_stop_graceful_minecraft( ) {
fn_stop_graceful_minecraft( ) {
fn_print_dots "Graceful: sending \"stop\""
fn_print_dots "Graceful: sending \"stop\""
fn_script_log_info "Graceful: sending \"stop\""
fn_script_log_info "Graceful: sending \"stop\""
@ -228,7 +228,7 @@ fn_stop_graceful_mta(){
fn_stop_tmux
fn_stop_tmux
}
}
# Attempts graceful of source using rcon 'exit' command.
# Attempts graceful of Terraria using 'exit' console command.
fn_stop_graceful_terraria( ) {
fn_stop_graceful_terraria( ) {
fn_print_dots "Graceful: sending \"exit\""
fn_print_dots "Graceful: sending \"exit\""
fn_script_log_info "Graceful: sending \"exit\""
fn_script_log_info "Graceful: sending \"exit\""
@ -261,13 +261,13 @@ fn_stop_graceful_select(){
fn_stop_graceful_sdtd
fn_stop_graceful_sdtd
elif [ " ${ gamename } " = = "Terraria" ] ; then
elif [ " ${ gamename } " = = "Terraria" ] ; then
fn_stop_graceful_terraria
fn_stop_graceful_terraria
elif [ " ${ engin e} " = = "lwjgl2 " ] ; then
elif [ " ${ gamenam e} " = = "Minecraft " ] ; then
fn_stop_graceful_minecraft
fn_stop_graceful_minecraft
elif [ " ${ engin e} " = = "renderware " ] ; then
elif [ " ${ gamenam e} " = = "Multi Theft Auto " ] ; then
fn_stop_graceful_mta
fn_stop_graceful_mta
elif [ " ${ engine } " = = "goldsource" ] ; then
elif [ " ${ engine } " = = "goldsource" ] ; then
fn_stop_graceful_goldsource
fn_stop_graceful_goldsource
elif [ " ${ gamename } " = = "Factorio" ] || [ " ${ gamename } " = = "Minecraft" ] || [ " ${ gamename } " = = "Multi Theft Auto" ] || [ " ${ engine } " = = "unity3d" ] || [ " ${ engine } " = = "unreal4" ] || [ " ${ engine } " = = "unreal3" ] || [ " ${ engine } " = = "unreal2" ] || [ " ${ engine } " = = "unreal" ] || [ " ${ gamename } " = = "Mumble" ] ; then
elif [ " ${ gamename } " = = "Factorio" ] || [ " ${ engine } " = = "unity3d" ] || [ " ${ engine } " = = "unreal4" ] || [ " ${ engine } " = = "unreal3" ] || [ " ${ engine } " = = "unreal2" ] || [ " ${ engine } " = = "unreal" ] || [ " ${ gamename } " = = "Mumble" ] ; then
fn_stop_graceful_ctrlc
fn_stop_graceful_ctrlc
elif [ " ${ engine } " = = "source" ] || [ " ${ engine } " = = "quake" ] || [ " ${ engine } " = = "idtech2" ] || [ " ${ engine } " = = "idtech3" ] || [ " ${ engine } " = = "idtech3_ql" ] || [ " ${ engine } " = = "Just Cause 2" ] ; then
elif [ " ${ engine } " = = "source" ] || [ " ${ engine } " = = "quake" ] || [ " ${ engine } " = = "idtech2" ] || [ " ${ engine } " = = "idtech3" ] || [ " ${ engine } " = = "idtech3_ql" ] || [ " ${ engine } " = = "Just Cause 2" ] ; then
fn_stop_graceful_quit
fn_stop_graceful_quit