diff --git a/SpigotCore_Main/src/de/steamwar/sql/SteamwarUser.java b/SpigotCore_Main/src/de/steamwar/sql/SteamwarUser.java index 9c3115b..d07ba7b 100644 --- a/SpigotCore_Main/src/de/steamwar/sql/SteamwarUser.java +++ b/SpigotCore_Main/src/de/steamwar/sql/SteamwarUser.java @@ -115,6 +115,7 @@ public class SteamwarUser { } return steamwarUsers; }, userName.toLowerCase() + "%"); + byPrefix.put(userName.toLowerCase().substring(0, 1), users); } return users.stream().filter(user -> user.getUserName().toLowerCase().startsWith(userName.toLowerCase())).collect(Collectors.toList()); }