These are the wrong way round

The UUID's are the keys, not the names
This commit is contained in:
Bestle 2014-09-26 02:54:45 +01:00
parent 626d967b7c
commit a914bc8ad1

View File

@ -306,11 +306,11 @@ public class Party {
} }
public boolean hasMember(String memberName) { public boolean hasMember(String memberName) {
return this.getMembers().keySet().contains(memberName); return this.getMembers().values().contains(memberName);
} }
public boolean hasMember(UUID uuid) { public boolean hasMember(UUID uuid) {
return this.getMembers().values().contains(uuid); return this.getMembers().keySet().contains(uuid);
} }
public String createMembersList(String playerName, List<Player> nearMembers) { public String createMembersList(String playerName, List<Player> nearMembers) {