Added /text edit <id> <new message> to edit the content of a message without deleting sounds and commands
Added /text player <id> to make the message sent by the player instead of the NPC
New option in config.yml:
Code (YAML):
# Format of the text. Placeholders: 0 for player's name ; 1 for message ; 2 for message id ; 3 for messages amount playerTexts: "§6[{2}/{3}] §e§l{0} :§r§e {1}"
Added an option in config.yml named keepTime which defines how many seconds the NPC will keep memory of the conversation it has had with the player. Past this time, the conversation will come back to its beginning.
Fixed a bug with "/text cmd auto" not properly saved.
New command: /text repeat (enabled by default). When disabled, the player will be able to talk only one time to the NPC (well, more accurately, he will not be able to talk to him until the end of the 64bit time unit, so the 4th of december, year 292277026596, at 15:30 and 7 seconds.)
You can now choose with the command /text cmd auto if the commands will be dispatched automatically or with a clickable message. (proposed by @Guigui5031 and @nefallme)
The timer to continue conversation (implemented in the last update) is more customizable : you can choose a distance of action. If the player is out of this range, the NPC will stop talking. In the config file : continueDistance (by default on 10)
A tab completer is added on the command /text : you just have to press TAB when you are writing any subcommand.
You can customize the format of message with the ID and the size of the conversation : [1/3] by example. Image : (Can be disabled)
A timer option is added in the config (by default : -1) : when you click on a NPC : (x is the value in the config file)
if x on -1 : you will see the text, and nothing will happen after
if x on more than 0 : you will see the text normally, and x seconds after the first click the next message will be shown. (if you re-click on the NPC while the timer is running, don't worry, the timer will restart with the next message.