mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +00:00
Fix RichParser suggestion sometimes giving a different pattern/mask when specifying arguments
This commit is contained in:
parent
527b7141a3
commit
cf6f54bd28
@ -44,7 +44,11 @@ public abstract class RichParser<E> extends InputParser<E> implements AliasedPar
|
||||
if (prefix.length() > other.length()) {
|
||||
return prefix.startsWith(other);
|
||||
}
|
||||
return other.startsWith(prefix);
|
||||
int i = other.indexOf('[');
|
||||
if (i == -1) {
|
||||
return other.startsWith(prefix);
|
||||
}
|
||||
return other.substring(0, i).equalsIgnoreCase(prefix);
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user