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