mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-05 12:36:40 +00:00
Should be equals in checking if valid prefix when not shorter and with no arguments
This commit is contained in:
@ -46,9 +46,9 @@ public abstract class RichParser<E> extends InputParser<E> implements AliasedPar
|
|||||||
}
|
}
|
||||||
int i = other.indexOf('[');
|
int i = other.indexOf('[');
|
||||||
if (i == -1) {
|
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);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user