Make /party kick case insensitive (#4630)

This commit is contained in:
Warrior 2021-09-22 23:59:39 +02:00 committed by GitHub
parent 5575309b79
commit 1e43e34547
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -327,7 +327,7 @@ public class Party {
}
public boolean hasMember(String memberName) {
return this.getMembers().containsValue(memberName);
return this.getMembers().values().stream().anyMatch(memberName::equalsIgnoreCase);
}
public boolean hasMember(UUID uuid) {