diff options
-rw-r--r-- | Essentials/src/com/earth2me/essentials/Essentials.java | 6 |
1 files 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; } |