mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-01-16 20:51:34 +01:00
These are the wrong way round
The UUID's are the keys, not the names
This commit is contained in:
parent
2dd8e719c8
commit
ec1a125809
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user