]> git.lizzy.rs Git - elidragon_v2.git/blob - scripts/console.sh
03f3d8f1b92b66774d14b035cbe0f5b0a103e5b9
[elidragon_v2.git] / scripts / console.sh
1 #! /bin/bash
2 # Elidragon v2 console script
3 # Attach to the screen of a world, multiserver or mapserver
4
5 source scripts/common.sh
6
7 case $1 in
8         "mapserver")
9                 screen -r `mapserver_screenname`
10                 ;;
11         "multiserver")
12                 screen -r `multiserver_sceenname`
13                 ;;
14         *)
15                 screen -r `world_screenname $1`
16                 ;;
17 esac