Another solution to retrieve the previous options that I found and can be used with the actual forge version is to split the CommandCompleterState.getBuffer() and find the next value in the String array. Something similar to:
String[] splitedCommand = state.getBuffer().split("[\\s]++");
//find the option in splitedCommand
Another solution to retrieve the previous options that I found and can be used with the actual forge version is to split the CommandCompleterState.getBuffer() and find the next value in the String array. Something similar to: