]> git.lizzy.rs Git - elidragon_v2.git/blob - scripts/stop.sh
Remove double 'source' in scripts
[elidragon_v2.git] / scripts / stop.sh
1 #! /bin/bash
2 # Elidragon v2 stop script
3 # Stop worlds, multiserver and mapserver
4
5 source scripts/common.sh
6
7 case $1 in
8         "--all")
9                 stop_mapserver
10                 stop_multiserver
11                 loop_worlds stop_world
12                 ;;
13         "--worlds")
14                 loop_worlds stop_world
15                 ;;
16         "mapserver")
17                 stop_mapserver
18                 ;;
19         "multiserver")
20                 stop_multiserver
21                 ;;
22         *)
23                 stop_world $1
24                 ;;
25 esac