Makes it easier to manually go to any book page
All checks were successful
EpicKnarvik97/Books-Without-Borders/pipeline/head This commit looks good

This commit is contained in:
2025-08-02 07:09:07 +02:00
parent 67ccdf3b1d
commit b15ad18ae3

View File

@@ -215,6 +215,10 @@ public final class BookFileHelper {
} else { } else {
nextComponent.append("Next [>]").color(ChatColor.GRAY); nextComponent.append("Next [>]").color(ChatColor.GRAY);
} }
nextComponent.append(" ", ComponentBuilder.FormatRetention.NONE).append(
"[Page Command]", ComponentBuilder.FormatRetention.NONE).event(new HoverEvent(
HoverEvent.Action.SHOW_TEXT, new Text("/" + command + " page" + page))).event(
new ClickEvent(ClickEvent.Action.SUGGEST_COMMAND, "/" + command + " page" + page));
sender.spigot().sendMessage(nextComponent.create()); sender.spigot().sendMessage(nextComponent.create());
} }