Skip to content

Commit

Permalink
- fixed killer notification
Browse files Browse the repository at this point in the history
  • Loading branch information
Grzybol committed Nov 22, 2023
1 parent 24219db commit c6e66d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>betterbox.mine.game</groupId>
<artifactId>BetterElo</artifactId>
<version>2.1.15-SNAPSHOT</version>
<version>2.1.16-SNAPSHOT</version>
<packaging>jar</packaging>

<name>BetterElo</name>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/betterbox/mine/game/betterelo/Event.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c6e66d0

Please sign in to comment.