Skip to content

Commit

Permalink
Make /party kick case insensitive (#4630)
Browse files Browse the repository at this point in the history
  • Loading branch information
Warriorrrr committed Sep 22, 2021
1 parent 5575309 commit 1e43e34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/gmail/nossr50/datatypes/party/Party.java
Expand Up @@ -327,7 +327,7 @@ public void setSharingDrops(ItemShareType shareType, boolean enabled) {
}

public boolean hasMember(String memberName) {
return this.getMembers().containsValue(memberName);
return this.getMembers().values().stream().anyMatch(memberName::equalsIgnoreCase);
}

public boolean hasMember(UUID uuid) {
Expand Down

0 comments on commit 1e43e34

Please sign in to comment.