From b0187698b9e7f4781fdc9e34d2a7dfb6da54c2f2 Mon Sep 17 00:00:00 2001 From: ElgarL Date: Sun, 4 May 2014 16:17:31 +0100 Subject: Prevent players who have never logged in before from taking over existing accounts. --- .../src/org/anjocaido/groupmanager/dataholder/WorldDataHolder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/WorldDataHolder.java') 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); -- cgit v1.2.3