cleaned up and set correct ports
This commit is contained in:
parent
b331c3c8a6
commit
5d5ecaaaa5
40
mc-shutdown
40
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
|
||||
|
||||
# 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
|
Loading…
Reference in New Issue
Block a user