From e366de43a1ea6831a6f8e7d1a3ee29dbea94829b Mon Sep 17 00:00:00 2001 From: Maxlego08 Date: Tue, 14 May 2024 10:31:45 +0200 Subject: [PATCH] :memo: Fix --- changelog.md | 1 + src/fr/maxlego08/koth/scoreboard/ScoreBoardManager.java | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index af9a2f8..2321e06 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,7 @@ # Unreleased - Update HuskTown API +- Fix scoreboard title with PlaceholderApi # 3.0.7 diff --git a/src/fr/maxlego08/koth/scoreboard/ScoreBoardManager.java b/src/fr/maxlego08/koth/scoreboard/ScoreBoardManager.java index 34d1feb..dea4904 100644 --- a/src/fr/maxlego08/koth/scoreboard/ScoreBoardManager.java +++ b/src/fr/maxlego08/koth/scoreboard/ScoreBoardManager.java @@ -74,7 +74,7 @@ public class ScoreBoardManager extends ZUtils { }); } - public void update(){ + public void update() { this.boards.forEach((player, board) -> { board.updateLines(this.lines.accept(player)); }); @@ -108,7 +108,7 @@ public class ScoreBoardManager extends ZUtils { this.boards.remove(player); FastBoard board = new FastBoard(player); - board.updateTitle(title); + board.updateTitle(papi(title, player)); if (this.lines != null) { board.updateLines(this.lines.accept(player));