Skip to content

Commit fd59b74

Browse files
committed
Fix wrong method usage
1 parent 0d36a87 commit fd59b74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/net/theevilreaper/bounce/util/PlayerUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public void broadcastWinner() {
8484
for (BounceProfile profile : profileService.getProfileMap().values()) {
8585
boolean isWinner = profile.equals(winnerProfile);
8686
profile.sendStats(isWinner);
87-
var title = Title.title(player.getCustomName(), Component.text("wons the game", NamedTextColor.GRAY), Title.DEFAULT_TIMES);
87+
var title = Title.title(player.getDisplayName(), Component.text("wons the game", NamedTextColor.GRAY), Title.DEFAULT_TIMES);
8888
player.sendTitlePart(TitlePart.TITLE, title.title());
8989
player.sendTitlePart(TitlePart.SUBTITLE, title.subtitle());
9090
player.sendTitlePart(TitlePart.TIMES, title.times());

0 commit comments

Comments
 (0)