Completion - The create/new and enable options should not complete enabled worlds

This commit is contained in:
Jason M. Wood 2013-12-02 20:47:41 -07:00
parent 86b63b417a
commit 75ff670376

View File

@ -14,8 +14,8 @@ _minecraft_server() {
COMPREPLY=($(compgen -W "$OPTS" -- $CUR)) COMPREPLY=($(compgen -W "$OPTS" -- $CUR))
else else
case $PREV in case $PREV in
start|stop|force-stop|restart|force-restart|create|new|delete|remove| \ start|stop|force-stop|restart|force-restart|delete|remove| \
disable|enable|status|show|sync|send|screen|watch|logrotate|backup| \ disable|status|show|sync|send|screen|watch|logrotate|backup| \
map|overviewer) map|overviewer)
WORLDS=$($MINECRAFT_SERVER list) WORLDS=$($MINECRAFT_SERVER list)
COMPREPLY=($(compgen -W "$WORLDS" -- $CUR)) COMPREPLY=($(compgen -W "$WORLDS" -- $CUR))