diff options
Diffstat (limited to 'src/main/java/net/elytrium/limboauth/LimboAuth.java')
-rw-r--r-- | src/main/java/net/elytrium/limboauth/LimboAuth.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/net/elytrium/limboauth/LimboAuth.java b/src/main/java/net/elytrium/limboauth/LimboAuth.java index f499df6..530076a 100644 --- a/src/main/java/net/elytrium/limboauth/LimboAuth.java +++ b/src/main/java/net/elytrium/limboauth/LimboAuth.java @@ -353,17 +353,17 @@ public class LimboAuth { } public void cacheAuthUser(Player player) { - String username = player.getUsername(); + String username = player.getUsername().toLowerCase(Locale.ROOT); this.cachedAuthChecks.remove(username); this.cachedAuthChecks.put(username, new CachedUser(player.getRemoteAddress().getAddress(), System.currentTimeMillis())); } public void removePlayerFromCache(String username) { - this.cachedAuthChecks.remove(username); + this.cachedAuthChecks.remove(username.toLowerCase(Locale.ROOT)); } public boolean needAuth(Player player) { - String username = player.getUsername(); + String username = player.getUsername().toLowerCase(Locale.ROOT); if (!this.cachedAuthChecks.containsKey(username)) { return true; } else { |