diff options
author | snowleo <schneeleo@gmail.com> | 2011-11-25 21:12:38 +0100 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-11-25 21:12:38 +0100 |
commit | fa733941138393a610625266dca52350e1fe4666 (patch) | |
tree | 54cc0437c9a363156280ab40a01fb35daf2822ac /EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/OverloadedWorldHolder.java | |
parent | 3daf56c8bea5280c05c7791a700b84bb2abbddaf (diff) | |
parent | b25a8f059b4d383b21d789aefbd3e3273503c0ba (diff) | |
download | Essentials-fa733941138393a610625266dca52350e1fe4666.tar Essentials-fa733941138393a610625266dca52350e1fe4666.tar.gz Essentials-fa733941138393a610625266dca52350e1fe4666.tar.lz Essentials-fa733941138393a610625266dca52350e1fe4666.tar.xz Essentials-fa733941138393a610625266dca52350e1fe4666.zip |
Merge branch 'refs/heads/groupmanager'
Diffstat (limited to 'EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/OverloadedWorldHolder.java')
-rw-r--r-- | EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/OverloadedWorldHolder.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/OverloadedWorldHolder.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/OverloadedWorldHolder.java index e7fa81627..8e2df5d10 100644 --- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/OverloadedWorldHolder.java +++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/OverloadedWorldHolder.java @@ -44,12 +44,13 @@ public class OverloadedWorldHolder extends WorldDataHolder { @Override public User getUser(String userName) { //OVERLOADED CODE - if (overloadedUsers.containsKey(userName.toLowerCase())) { - return overloadedUsers.get(userName.toLowerCase()); + String userNameLowered = userName.toLowerCase(); + if (overloadedUsers.containsKey(userNameLowered)) { + return overloadedUsers.get(userNameLowered); } //END CODE - if (users.containsKey(userName.toLowerCase())) { - return users.get(userName.toLowerCase()); + if (users.containsKey(userNameLowered)) { + return users.get(userNameLowered); } User newUser = createUser(userName); haveUsersChanged = true; |