From 85fd2c712ea8f32189107101a71942bae2bd5f46 Mon Sep 17 00:00:00 2001 From: snowleo Date: Sat, 14 May 2011 23:07:29 +0000 Subject: [PATCH] Fix problem with offline users. Store all usernames in lower case. git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1467 e251c2fe-e539-e718-e476-b85c1f46cddb --- Essentials/src/com/earth2me/essentials/Essentials.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Essentials/src/com/earth2me/essentials/Essentials.java b/Essentials/src/com/earth2me/essentials/Essentials.java index 09c0785f9..c394625db 100644 --- a/Essentials/src/com/earth2me/essentials/Essentials.java +++ b/Essentials/src/com/earth2me/essentials/Essentials.java @@ -604,13 +604,13 @@ public class Essentials extends JavaPlugin return (User)base; } - if (users.containsKey(base.getName())) + if (users.containsKey(base.getName().toLowerCase())) { - return users.get(base.getName()).update(base); + return users.get(base.getName().toLowerCase()).update(base); } User u = new User(base, this); - users.put(u.getName(), u); + users.put(u.getName().toLowerCase(), u); return u; }