]> git.lizzy.rs Git - elidragon_v2.git/blob - scripts/restart.sh
Update scripts to include multiserver
[elidragon_v2.git] / scripts / restart.sh
1 #! /bin/bash
2 # Elidragon v2 restart script
3 # Restart one or all worlds, or if --multiserver is used, the multiserver. If all worlds are restarted, multiserver is restarted as well
4 # Arguments: [<worldname> | --multiserver]
5
6 source source scripts/common.sh
7
8 if [[ $1 == "--multiserver" || run_one_or_all restart_world $1 ]]; then
9         restart_multiserver
10 fi