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 committed by TfT_02
parent 2dd8e719c8
commit ec1a125809

View File

@ -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<Player> nearMembers) {