mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Fix RichParser suggestions
This commit is contained in:
parent
54398ebe1c
commit
fad1fcd8ee
@ -51,7 +51,7 @@ public abstract class RichParser<E> extends InputParser<E> implements AliasedPar
|
||||
@Nonnull
|
||||
private Function<String, Stream<? extends String>> extractArguments(String input) {
|
||||
return prefix -> {
|
||||
if (input.length() > prefix.length() && prefix.startsWith(input + "[")) {
|
||||
if (input.length() > prefix.length() && input.startsWith(prefix + "[")) {
|
||||
// input already contains argument(s) -> extract them
|
||||
String[] strings = extractArguments(input.substring(prefix.length()), false);
|
||||
// rebuild the argument string without the last argument
|
||||
|
Loading…
Reference in New Issue
Block a user