Makes it easier to manually go to any book page
All checks were successful
EpicKnarvik97/Books-Without-Borders/pipeline/head This commit looks good
All checks were successful
EpicKnarvik97/Books-Without-Borders/pipeline/head This commit looks good
This commit is contained in:
@@ -215,6 +215,10 @@ public final class BookFileHelper {
|
||||
} else {
|
||||
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());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user