mirror of
https://github.com/msmhq/msm.git
synced 2024-08-30 18:12:35 +00:00
Added output for worlds list command, when there are no worlds.
This commit is contained in:
parent
4185db1e59
commit
7a8a91992c
5
init/msm
5
init/msm
@ -1308,6 +1308,11 @@ server_restart_now() {
|
||||
# List the worlds available for a server
|
||||
# $1: The ID of the server
|
||||
server_worlds_list() {
|
||||
if [[ "${SERVER_NUM_WORLDS[$1]}" -eq 0 ]]; then
|
||||
echo "There are no worlds in world storage."
|
||||
return 0
|
||||
fi
|
||||
|
||||
local i="${SERVER_WORLD_OFFSET[$1]}"
|
||||
local max="$(( $i + ${SERVER_NUM_WORLDS[$1]} ))"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user