From 71b1cc79245831fddc6d341ac7024371e985b481 Mon Sep 17 00:00:00 2001 From: Johannes Schmelz Date: Sun, 14 Mar 2021 20:28:31 +0000 Subject: [PATCH] cleaned up redundant code --- mc-shutdown | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/mc-shutdown b/mc-shutdown index 95a9d77..eaf3855 100755 --- a/mc-shutdown +++ b/mc-shutdown @@ -18,15 +18,14 @@ fi #Initialize variables password=NisikiTimbukSFSGames -cd /usr/local/bin/ if [ -z "$1"] then # First shutdown waterfall, so all connections are closed - ./mcrcon -H 192.168.178.20 -P 25577 -p $password -w 5 "alert Server is shutting down!" end - ./mcrcon -H 192.168.178.20 -P 25578 -p $password -w 5 save-all stop - ./mcrcon -H 192.168.178.20 -P 25579 -p $password -w 5 save-all stop - ./mcrcon -H 192.168.178.22 -P 25580 -p $password -w 5 save-all stop - ./mcrcon -H 192.168.178.22 -P 25581 -p $password -w 5 save-all stop - ./mcrcon -H 192.168.178.21 -P 25582 -p $password -w 5 save-all stop - ./mcrcon -H 192.168.178.21 -P 25583 -p $password -w 5 save-all stop + mcrcon -H 192.168.178.20 -P 25577 -p $password -w 5 "alert Server is shutting down!" end + mcrcon -H 192.168.178.20 -P 25578 -p $password -w 5 save-all stop + mcrcon -H 192.168.178.20 -P 25579 -p $password -w 5 save-all stop + mcrcon -H 192.168.178.22 -P 25580 -p $password -w 5 save-all stop + mcrcon -H 192.168.178.22 -P 25581 -p $password -w 5 save-all stop + mcrcon -H 192.168.178.21 -P 25582 -p $password -w 5 save-all stop + mcrcon -H 192.168.178.21 -P 25583 -p $password -w 5 save-all stop fi \ No newline at end of file