]> git.lizzy.rs Git - elidragon_v2.git/blobdiff - scripts/console.sh
Fix log messages in scripts
[elidragon_v2.git] / scripts / console.sh
index 77d876db16bd233c9192fb0ff500dcfbb1193307..03f3d8f1b92b66774d14b035cbe0f5b0a103e5b9 100755 (executable)
@@ -1,9 +1,17 @@
 #! /bin/bash
 # Elidragon v2 console script
-# Attach to the console of a world
-# Arguments: <worldname>
+# Attach to the screen of a world, multiserver or mapserver
 
 source scripts/common.sh
 
-assert_running $1
-screen -r `world_screenname $1`
+case $1 in
+       "mapserver")
+               screen -r `mapserver_screenname`
+               ;;
+       "multiserver")
+               screen -r `multiserver_sceenname`
+               ;;
+       *)
+               screen -r `world_screenname $1`
+               ;;
+esac