mirror of
https://github.com/msmhq/msm.git
synced 2024-08-30 18:12:35 +00:00
Added bash completion for "server", "jargroup" and general server command.
This commit is contained in:
parent
82ce1a202f
commit
cd293d7209
@ -23,11 +23,20 @@ _msm() {
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
server)
|
server)
|
||||||
|
if [[ $COMP_CWORD == 2 ]]; then
|
||||||
|
options="list create delete rename"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
jargroup)
|
jargroup)
|
||||||
|
if [[ $COMP_CWORD == 2 ]]; then
|
||||||
|
options="list create delete rename changeurl getlatest"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
# Server options
|
# 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
|
esac
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user