How can I check if a player clicks "Done" on a specific book?
[doublepost=1522765641,1522685770][/doublepost]
code_language.skript:
command /book:
trigger:
set {_book} to a new book
set {_titolo} to a new text component with "&7 Ok %executor%, sei entrato in &7modalità NICK! Per prima &7cosa seleziona un rank per il &7disguise."
set {_testo2} to a new text component with "%last character of nl%%last character of nl%&b&lVIP"
add hover event with action SHOW_TEXT with text "&7Avrai un nick &b&lVIP&7!" to text component {_testo2}
add click event with action RUN_COMMAND with execute "/setnick VIP" to text component {_testo2}
set {_testo3} to a new text component with "%last character of nl%&a&lVIP+"
add hover event with action SHOW_TEXT with text "&7Avrai un nick &a&lVIP+&7!" to text component {_testo3}
add click event with action RUN_COMMAND with execute "/setnick VIP+!" to text component {_testo3}
set {_testo4} to a new text component with "%last character of nl%&6&lMVP"
add hover event with action SHOW_TEXT with text "&7Avrai un nick &6&lMVP&7!" to text component {_testo4}
add click event with action RUN_COMMAND with execute "/setnick MVP" to text component {_testo4}
set {_testo5} to a new text component with "%last character of nl%&d&lMVP+"
add hover event with action SHOW_TEXT with text "&7Avrai un nick &d&lMVP+&7!" to text component {_testo5}
add click event with action RUN_COMMAND with execute "/setnick MVP" to text component {_testo5}
add text component {_titolo} and {_testo2} and {_testo3} and {_testo4} and {_testo5} to book {_book}
open book {_book} to player
Last edited: