Hi, I don't know whether this would be possible with Skript or not but I'm looking to recreate Hypixel's /nick feature. I want to have the command /nick open a book with text and when you click on a rank, it runs a command. I currently have this to open the book but it just says invalid book tag...
Here is what I'm trying to achieve:
code_language.skript:
command /openBook:
trigger:
set {_item} to slot player's current hotbar slot of player
set slot player's current hotbar slot of player to a written book
open book player's tool to player
set slot player's current hotbar slot of player to {_item}
Here is what I'm trying to achieve: