diff --git a/src/main/java/net/silentclient/client/utils/Players.java b/src/main/java/net/silentclient/client/utils/Players.java index 2dfb54e..29bd1af 100644 --- a/src/main/java/net/silentclient/client/utils/Players.java +++ b/src/main/java/net/silentclient/client/utils/Players.java @@ -18,6 +18,7 @@ public class Players { public static boolean isLoading = false; public static void reload() { + Client.logger.info("Clearing players cache"); playersCache.clear(); } @@ -101,7 +102,7 @@ public class Players { public void run() { PlayerResponse response = getAccount(name.toLowerCase()); if(response != null && response.getAccount() != null) { - playersCache.put(response.getAccount().getUsername(), response.getAccount()); + playersCache.put(response.getAccount().getUsername().toLowerCase(), response.getAccount()); } try { Thread.sleep(1000);