mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-06-14 13:13:53 +00:00
Fix RichParser suggestion sometimes giving a different pattern/mask when specifying arguments
This commit is contained in:
@ -44,7 +44,11 @@ public abstract class RichParser<E> extends InputParser<E> implements AliasedPar
|
|||||||
if (prefix.length() > other.length()) {
|
if (prefix.length() > other.length()) {
|
||||||
return prefix.startsWith(other);
|
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);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user