diff options
author | ElgarL <ElgarL@Palmergames.com> | 2014-05-04 16:17:31 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2014-05-04 16:22:58 +0100 |
commit | b0187698b9e7f4781fdc9e34d2a7dfb6da54c2f2 (patch) | |
tree | b7f0836131f96c24891bedfd65f7be44b32512a7 /EssentialsGroupManager/src/org/anjocaido | |
parent | 0364d4e0de8c56d7db7f29dc2ea56d1e5c08f894 (diff) | |
download | Essentials-b0187698b9e7f4781fdc9e34d2a7dfb6da54c2f2.tar Essentials-b0187698b9e7f4781fdc9e34d2a7dfb6da54c2f2.tar.gz Essentials-b0187698b9e7f4781fdc9e34d2a7dfb6da54c2f2.tar.lz Essentials-b0187698b9e7f4781fdc9e34d2a7dfb6da54c2f2.tar.xz Essentials-b0187698b9e7f4781fdc9e34d2a7dfb6da54c2f2.zip |
Prevent players who have never logged in before from taking over existing accounts.
Diffstat (limited to 'EssentialsGroupManager/src/org/anjocaido')
-rw-r--r-- | EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/WorldDataHolder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/WorldDataHolder.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/WorldDataHolder.java index 14a9a052d..a6312ae70 100644 --- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/WorldDataHolder.java +++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/WorldDataHolder.java @@ -155,7 +155,7 @@ public class WorldDataHolder { // Search for a LastName match for (User usr : getUserList()) { - if (usr.getLastName().equalsIgnoreCase(currentName)) { + if (usr.getLastName().equalsIgnoreCase(currentName) && !usr.getUUID().equalsIgnoreCase(usr.getLastName())) { // Clone this user so we can set it's uUID user = usr.clone(uUID, currentName); |