Skip to content

Commit

Permalink
fix: πŸ› fix private msg letter case
Browse files Browse the repository at this point in the history
  • Loading branch information
AnzhiZhang committed Apr 26, 2024
1 parent 45fd0cd commit c05373e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ public List<String> suggest(final Invocation invocation) {
} else if (args.length == 2 && args[0].equals("msg")) {
return proxyServer.getAllPlayers()
.stream().map(Player::getUsername)
.map(String::toLowerCase)
.filter(s -> s.startsWith(args[1].toLowerCase()))
.filter(s -> s.toLowerCase().startsWith(args[1].toLowerCase()))
.collect(Collectors.toList());
} else {
return List.of();
Expand Down

0 comments on commit c05373e

Please # to comment.