]> git.lizzy.rs Git - elidragon_v2.git/blobdiff - scripts/restart.sh
Update scripts to include multiserver
[elidragon_v2.git] / scripts / restart.sh
index f1e0f3a04998fc48ab218c57721a7e0d1e62819c..53a385f19e6a468b4932e9e1e2148442bba2ddd6 100755 (executable)
@@ -1,8 +1,10 @@
 #! /bin/bash
 # Elidragon v2 restart script
-# Restart one or all worlds
-# Arguments: [<worldname>]
+# Restart one or all worlds, or if --multiserver is used, the multiserver. If all worlds are restarted, multiserver is restarted as well
+# Arguments: [<worldname> | --multiserver]
 
 source source scripts/common.sh
 
-run_one_or_all restart_world $1
+if [[ $1 == "--multiserver" || run_one_or_all restart_world $1 ]]; then
+       restart_multiserver
+fi