printlns
This commit is contained in:
@@ -64,6 +64,7 @@ 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.",
|
||||
@@ -71,6 +72,8 @@ async fn do_soft_save_with_announcement() {
|
||||
// .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]
|
||||
|
Reference in New Issue
Block a user