diff --git a/mc-shutdown b/mc-shutdown index eaf3855..7f6ba46 100755 --- a/mc-shutdown +++ b/mc-shutdown @@ -16,16 +16,32 @@ then fi #Initialize variables -password=NisikiTimbukSFSGames +password= -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 -fi \ No newline at end of file + +# First shutdown waterfall, so all connections are closed +mcrcon -H 192.168.178.20 -P 25600 -p $password -w 5 "alert Server is shutting down!" end + +#standart server +for i in {25600..25604} +do + mcrcon -H 192.168.178.20 -P $i -p $password -w 5 save-all stop +done + +#modded server +for i in {25605..25607} +do + mcrcon -H 192.168.178.21 -P $i -p $password -w 5 save-all stop +done + +# minigames server +for i in {25608..25612} +do + mcrcon -H 192.168.178.22 -P $i -p $password -w 5 save-all stop +done + +# pvp server +for i in {25613..25615} +do + mcrcon -H 192.168.178.23 -P $i -p $password -w 5 save-all stop +done \ No newline at end of file