mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-17 20:11:21 +02: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:
@@ -604,13 +604,13 @@ public class Essentials extends JavaPlugin
|
|||||||
return (User)base;
|
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);
|
User u = new User(base, this);
|
||||||
users.put(u.getName(), u);
|
users.put(u.getName().toLowerCase(), u);
|
||||||
return u;
|
return u;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user