mirror of
https://github.com/MinecraftServerControl/mscs.git
synced 2024-11-15 06:48:16 -07:00
Completion - The create/new and enable options should not complete enabled worlds
This commit is contained in:
parent
86b63b417a
commit
75ff670376
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user