mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 22:56:45 +01:00
These are the wrong way round
The UUID's are the keys, not the names
This commit is contained in:
parent
626d967b7c
commit
a914bc8ad1
@ -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