Allow mixed case literal suggestions

This commit is contained in:
Nathan Adams committed 2017-11-09 12:25:29 +01:00
1 parent b716f9a873
commit 1369eaf2c3
1 file changed
+1 -1
@@ -51,7 +51,7 @@ public class LiteralCommandNode<S> extends CommandNode<S> {
@Override
public CompletableFuture<Collection<String>> listSuggestions(CommandContext<S> context, final String command) {
if (literal.startsWith(command)) {
if (literal.toLowerCase().startsWith(command.toLowerCase())) {
return CompletableFuture.completedFuture(Collections.singleton(literal));
} else {
return CompletableFuture.completedFuture(Collections.emptyList());