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))
else
case $PREV in
start|stop|force-stop|restart|force-restart|create|new|delete|remove| \
disable|enable|status|show|sync|send|screen|watch|logrotate|backup| \
start|stop|force-stop|restart|force-restart|delete|remove| \
disable|status|show|sync|send|screen|watch|logrotate|backup| \
map|overviewer)
WORLDS=$($MINECRAFT_SERVER list)
COMPREPLY=($(compgen -W "$WORLDS" -- $CUR))