Fixed /player kill table only showing self kills

This commit is contained in:
Rsl1122 2019-08-26 10:56:45 +03:00
parent 5ebe33e293
commit d2b57498da
2 changed files with 5 additions and 1 deletions

View File

@ -117,4 +117,8 @@ public class PlayerKill implements DateHolder {
public boolean isSelfKill() {
return getVictimName().map(v -> v.equals(killerName)).orElse(false);
}
public boolean isNotSelfKill() {
return !isSelfKill();
}
}

View File

@ -38,7 +38,7 @@ public class PlayerKillMutator {
}
public PlayerKillMutator filterNonSelfKills() {
return new PlayerKillMutator(kills.stream().filter(PlayerKill::isSelfKill).collect(Collectors.toList()));
return new PlayerKillMutator(kills.stream().filter(PlayerKill::isNotSelfKill).collect(Collectors.toList()));
}
public List<Map<String, Object>> toJSONAsMap(Formatters formatters) {