cleaned up and set correct ports

This commit is contained in:
Johannes Schmelz 2022-04-08 16:01:14 +02:00
parent b331c3c8a6
commit 5d5ecaaaa5

View File

@ -16,16 +16,32 @@ then
fi fi
#Initialize variables #Initialize variables
password=NisikiTimbukSFSGames password=
if [ -z "$1"]
then
# First shutdown waterfall, so all connections are closed # 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 25600 -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 #standart server
mcrcon -H 192.168.178.22 -P 25580 -p $password -w 5 save-all stop for i in {25600..25604}
mcrcon -H 192.168.178.22 -P 25581 -p $password -w 5 save-all stop do
mcrcon -H 192.168.178.21 -P 25582 -p $password -w 5 save-all stop mcrcon -H 192.168.178.20 -P $i -p $password -w 5 save-all stop
mcrcon -H 192.168.178.21 -P 25583 -p $password -w 5 save-all stop done
fi
#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