From 4366a1849685243131d215f811840e7bcb217b75 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Thu, 9 Dec 2021 17:27:54 +0100 Subject: [PATCH] Update SWCommandUtils SteamwarUser mapper --- SpigotCore_Main/src/de/steamwar/sql/SteamwarUser.java | 1 + 1 file changed, 1 insertion(+) 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()); }