]> git.lizzy.rs Git - elidragon_v2.git/blobdiff - scripts/stop.sh
Update scripts to include multiserver
[elidragon_v2.git] / scripts / stop.sh
index 7e95f2c040d86f033b4edb97ec35223f1230de77..8297ddc1e2c455cb7e4a9cc3eaae7b8e30f164f9 100755 (executable)
@@ -1,8 +1,10 @@
 #! /bin/bash
 # Elidragon v2 stop script
-# Stop one or all worlds
+# Stop one or all worlds, or if --multiserver is used, the multiserver. If all worlds are stopped, multiserver is stopped as well
 # Arguments: [<worldname>]
 
-source scripts/internal.sh
+source scripts/common.sh
 
-run_one_or_all stop_world $1
+if [[ $1 == "--multiserver" || run_one_or_all stop_world $1 ]]; then
+       stop_multiserver
+fi