-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#191 Fix newlines on colorful echo aliases by thejcpalma
- Loading branch information
Showing
10 changed files
with
119 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,26 @@ | ||
# shellcheck disable=SC2148 | ||
|
||
function save_and_shutdown_server() { | ||
rcon 'broadcast Server-shutdown-was-requested-init-saving' | ||
rcon 'save' | ||
rcon 'broadcast Done-saving-server-shuts-down-now' | ||
rconcli 'broadcast Server-shutdown-was-requested-init-saving' | ||
rconcli 'save' | ||
rconcli 'broadcast Done-saving-server-shuts-down-now' | ||
} | ||
|
||
function broadcast_backup_start() { | ||
time=$(date '+%H:%M:%S') | ||
|
||
rconcli "broadcast ${time}-Saving-in-5-seconds" | ||
sleep 5 | ||
rconcli 'broadcast Saving-world...' | ||
rconcli 'save' | ||
rconcli 'broadcast Saving-done' | ||
rconcli 'broadcast Creating-backup' | ||
} | ||
|
||
function broadcast_backup_success() { | ||
rconcli 'broadcast Backup-done' | ||
} | ||
|
||
function broadcast_backup_failed() { | ||
rconcli 'broadcast Backup-failed' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.