Added bash completion for "server", "jargroup" and general server command.

This commit is contained in:
Marcus Whybrow 2012-05-31 07:11:34 +01:00
parent 82ce1a202f
commit cd293d7209

View File

@ -23,11 +23,20 @@ _msm() {
fi
;;
server)
if [[ $COMP_CWORD == 2 ]]; then
options="list create delete rename"
fi
;;
jargroup)
if [[ $COMP_CWORD == 2 ]]; then
options="list create delete rename changeurl getlatest"
fi
;;
*)
# Server options
if [ -e $SERVER_STORAGE_PATH/${COMP_WORDS[2]} ]; then
options="start stop restart status connected worlds logroll backup jar wl whitelist bl blacklist op operator gm gamemode kick say time tdf toggledownfall save cmd cmdlog"
fi
;;
esac
else