Skip to content

Commit

Permalink
change book placeholder to use []
Browse files Browse the repository at this point in the history
  • Loading branch information
BenCodez committed Oct 19, 2024
1 parent b4519bc commit 9400a4f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public void onBook(Player player) {
}
String url = PlaceholderUtils.replacePlaceHolder(PlaceholderUtils.replacePlaceHolder(
site.getVoteURLJsonStrip(), "player", user.getPlayerName()), "num", "" + i);
layout.replaceTextComponent("%num%", BookUtil.TextBuilder.of(text).build());
layout.replaceTextComponent("[num]", BookUtil.TextBuilder.of("" + i).build());
layout.replaceTextComponent("[UrlText]",
BookUtil.TextBuilder.of(text).color(color).onClick(BookUtil.ClickAction.openUrl(url))
.onHover(BookUtil.HoverAction.showText(url)).build());
Expand Down

0 comments on commit 9400a4f

Please sign in to comment.