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 | 763fd611c0992e2da097e0c48675c66b08537954 (patch) | |
tree | c69275b1029d4872317be868736520bb01fc736b | |
parent | cfe528187aff8f2192f67ae27c68691463d695de (diff) | |
download | Essentials-763fd611c0992e2da097e0c48675c66b08537954.tar Essentials-763fd611c0992e2da097e0c48675c66b08537954.tar.gz Essentials-763fd611c0992e2da097e0c48675c66b08537954.tar.lz Essentials-763fd611c0992e2da097e0c48675c66b08537954.tar.xz Essentials-763fd611c0992e2da097e0c48675c66b08537954.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; } |