From ba86975d3147ee8d37793ff0bc224fe9d3e85d9d Mon Sep 17 00:00:00 2001 From: Jacob Babich Date: Sun, 21 Jan 2024 01:01:54 -0500 Subject: [PATCH] printlns --- src/main.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 8379ef7..d79f771 100644 --- a/src/main.rs +++ b/src/main.rs @@ -64,13 +64,16 @@ where } async fn do_soft_save_with_announcement() { + println!("Soft saving..."); // run_rcon_command([ // "say", // "Soft saving now. No need to interrupt what you're doing.", // ]) // .await; - + run_rcon_command(["save-all"]).await; + + println!("Soft saving done."); } async fn do_hard_save_with_announcement() { @@ -78,6 +81,8 @@ async fn do_hard_save_with_announcement() { let duration = ten_seconds; let delay = tokio::spawn(sleep(duration)); + println!("Hard saving..."); + run_rcon_command([ "say", "Hard saving in 10 seconds. Get to safety and pause your activities.", @@ -95,6 +100,8 @@ async fn do_hard_save_with_announcement() { "The hard save has completed. We do this to lower crash risks. Thanks.", ]) .await; + + println!("Hard saving done."); } #[tokio::main]