I bring some frequently asked updates for the jsons.
SUGGEST_COMMAND and
OPEN_BOOK.
Command Suggestions
Suggest command sends player a message in chat on which the player can click to suggest a command. Both the message and the hover text is customizable. In order to use suggest command, simply add the following in
CLICK_EVENT. An example is given below.
Code (YAML):
examplejson:
TEXT
: '&c&l
[SUGGEST COMMAND
]'
HOVER_TEXT
: '&aClick to suggest command'
CLICK_EVENT:
SUGGEST_COMMAND:
MESSAGE
:
"&aThis is the message sent in chat"
HOVER_TEXT
:
"&6This is the message hover text"
COMMAND
:
"/command"
Opening another book on click
This allows the player to open a book you specify in the json without giving the player the permission to do so! This makes life a lot easier. In order to do it, simply use
OPEN_BOOK in
CLICK_EVENT. An example is given below.
Code (YAML):
examplejson:
TEXT
: '&c&l
[OPEN BOOK
]'
HOVER_TEXT
: '&aClick to open book'
CLICK_EVENT:
OPEN_BOOK
:
"Thanks.yml"
In the
OPEN_BOOK tag, add the book file name. Be sure to
INCLUDE .yml!
Donations
If you like my work and want to support the development of VirtualBooks, I have added the ability to donate! Donations aren't required but are highly appreciated!
PS: Everything supports PAPI and thanks for using my plugin! Enjoy the update! If you have any error feel free to DM me on spigot or join my discord!
I also hope to create a detailed wiki soon!