From c6e66d04f664fa06c2498784751eb67ebbefa67a Mon Sep 17 00:00:00 2001 From: Grzybol Date: Wed, 22 Nov 2023 17:13:22 +0100 Subject: [PATCH] - fixed killer notification --- pom.xml | 2 +- src/main/java/betterbox/mine/game/betterelo/Event.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 52131a2..dcb80cc 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ betterbox.mine.game BetterElo - 2.1.15-SNAPSHOT + 2.1.16-SNAPSHOT jar BetterElo diff --git a/src/main/java/betterbox/mine/game/betterelo/Event.java b/src/main/java/betterbox/mine/game/betterelo/Event.java index 54ceb44..9ac522c 100644 --- a/src/main/java/betterbox/mine/game/betterelo/Event.java +++ b/src/main/java/betterbox/mine/game/betterelo/Event.java @@ -212,7 +212,7 @@ private void notifyPlayersAboutPoints(Player killer, Player victim, double point Duration fadeOut = Duration.ofMillis(300); // czas znikania Title.Times times = Title.Times.times(fadeIn, stay, fadeOut); Component killerTitleComponent = Component.text(ChatColor.GREEN +""+ChatColor.BOLD+ "+"+df.format(pointsEarned)+" Elo"); - Component killerSubtitleComponent = Component.text(ChatColor.GOLD +"Victim: "+victim); + Component killerSubtitleComponent = Component.text(ChatColor.GOLD +"Victim: "+victim.getName()); // Notify the killer Title killerTitle = Title.title(killerTitleComponent,killerSubtitleComponent,times); killer.showTitle(killerTitle);