mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-11-18 01:46:11 +00:00
Should be equals in checking if valid prefix when not shorter and with no arguments
This commit is contained in:
parent
cf6f54bd28
commit
575b0035df
@ -46,9 +46,9 @@ public abstract class RichParser<E> extends InputParser<E> implements AliasedPar
|
||||
}
|
||||
int i = other.indexOf('[');
|
||||
if (i == -1) {
|
||||
return other.startsWith(prefix);
|
||||
return other.equals(prefix);
|
||||
}
|
||||
return other.substring(0, i).equalsIgnoreCase(prefix);
|
||||
return other.substring(0, i).equals(prefix);
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user