[#994] Player Calendar now shows kill victim names.

This commit is contained in:
Rsl1122 2019-04-07 09:08:38 +03:00
parent 05bfea37b0
commit 3fd0f635a6

View File

@ -121,7 +121,7 @@ public class PlayerCalendar {
for (PlayerKill kill : session.getPlayerKills()) {
long time = kill.getDate();
series.append(",{title: 'Killed: ").append(kill.getVictim())
series.append(",{title: 'Killed: ").append(kill.getVictimName().orElse(kill.getVictim().toString()))
.append("',start:").append(time)
.append(",end:").append(time + fiveMinutes)
.append(",color: '").append(theme.getValue(ThemeVal.RED)).append("'")