diff options
author | snowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-05-14 23:07:29 +0000 |
---|---|---|
committer | snowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-05-14 23:07:29 +0000 |
commit | 85fd2c712ea8f32189107101a71942bae2bd5f46 (patch) | |
tree | 552f5e26a3469da9bf23ad8f82a7d9b2af296394 | |
parent | f3aa5fe2ce2af9944e833905756987e7fc95f016 (diff) | |
download | Essentials-85fd2c712ea8f32189107101a71942bae2bd5f46.tar Essentials-85fd2c712ea8f32189107101a71942bae2bd5f46.tar.gz Essentials-85fd2c712ea8f32189107101a71942bae2bd5f46.tar.lz Essentials-85fd2c712ea8f32189107101a71942bae2bd5f46.tar.xz Essentials-85fd2c712ea8f32189107101a71942bae2bd5f46.zip |
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
-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; } |