Skip to content

Commit

Permalink
Add killer display name placeholder to TopKillerMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
MetallicGoat committed Jan 10, 2025
1 parent a319e33 commit 0bc5afd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@ public class MainConfig {

@Config(
description = {
"Top killer message displayed at the end of a round"
"Top killer message displayed at the end of a round",
"Placeholders: {killer-name} {killer-display-name} {kill-amount}"
}
)
public static boolean top_killer_message_enabled = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ private void printMessage(Arena arena, Map<UUID, Integer> playerIntegerMap) {

formattedList.add(Message.build(text)
.placeholder("killer-name", player.getName())
.placeholder("killer-display-name", player.getName())
.placeholder("kill-amount", playerIntegerMap.get(uuid))
);

Expand Down

0 comments on commit 0bc5afd

Please sign in to comment.