From f964b4541cbc1b196df9f2a6f90bdd1168f2fd47 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Thu, 9 Dec 2021 18:00:31 +0100 Subject: [PATCH] Update SWCommandUtils SteamwarUser mapper --- SpigotCore_Main/src/de/steamwar/sql/SteamwarUser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SpigotCore_Main/src/de/steamwar/sql/SteamwarUser.java b/SpigotCore_Main/src/de/steamwar/sql/SteamwarUser.java index d07ba7b..cd4ba0f 100644 --- a/SpigotCore_Main/src/de/steamwar/sql/SteamwarUser.java +++ b/SpigotCore_Main/src/de/steamwar/sql/SteamwarUser.java @@ -98,7 +98,7 @@ public class SteamwarUser { } public static List getByPrefix(String userName){ - if (userName.length() < 2) { + if (userName.length() < 1) { return new ArrayList<>(); } List users = byPrefix.get(userName.toLowerCase().substring(0, 1));