mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-11 20:00:46 +00:00
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
This commit is contained in:
parent
f3aa5fe2ce
commit
85fd2c712e
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue