mirror of
https://github.com/msmhq/msm.git
synced 2024-08-30 18:12:35 +00:00
Prevented save commands being sent to a stopped server in <server> worlds to disk
.
Before this fix, if the server was stopped the command would output 'Server "name" is not running.' multiple times.
This commit is contained in:
parent
fe64cf0207
commit
ee5589bac0
12
init/msm
12
init/msm
@ -1990,10 +1990,16 @@ command_server_worlds_ram() {
|
||||
# Synchronises all inram worlds back to disk for an individual server
|
||||
# $1: The server ID
|
||||
command_server_worlds_todisk() {
|
||||
server_save_off "$1"
|
||||
server_save_all "$1"
|
||||
if server_is_running "$1"; then
|
||||
server_save_off "$1"
|
||||
server_save_all "$1"
|
||||
fi
|
||||
|
||||
server_worlds_to_disk "$1"
|
||||
server_save_on "$1"
|
||||
|
||||
if server_is_running "$1"; then
|
||||
server_save_on "$1"
|
||||
fi
|
||||
}
|
||||
|
||||
# Makes a backup of all worlds for an individual server
|
||||
|
Loading…
Reference in New Issue
Block a user