From a914bc8ad1e65b77cd12b3008bb47809b4980850 Mon Sep 17 00:00:00 2001 From: Bestle Date: Fri, 26 Sep 2014 02:54:45 +0100 Subject: [PATCH] These are the wrong way round The UUID's are the keys, not the names --- src/main/java/com/gmail/nossr50/datatypes/party/Party.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/datatypes/party/Party.java b/src/main/java/com/gmail/nossr50/datatypes/party/Party.java index 55575f353..0ec916007 100644 --- a/src/main/java/com/gmail/nossr50/datatypes/party/Party.java +++ b/src/main/java/com/gmail/nossr50/datatypes/party/Party.java @@ -306,11 +306,11 @@ public class Party { } public boolean hasMember(String memberName) { - return this.getMembers().keySet().contains(memberName); + return this.getMembers().values().contains(memberName); } public boolean hasMember(UUID uuid) { - return this.getMembers().values().contains(uuid); + return this.getMembers().keySet().contains(uuid); } public String createMembersList(String playerName, List nearMembers) {