· A new function has been added, it is related to dialogs that can only be executed once, it is called "after first time" and its function is to make a dialog executable once or to execute another one after the first interaction.
This is an example of its use:
Code (YAML):
dialogs:
npcs:
after-first-time-dialogue:
click
: RIGHT
display-name
: '?????'
npc-id
: 7356
dialog:
- 'WAIT
: 2'
- 'SEND
:
&e[NPC] &4
%npc_name%&f: I'll tell you a story... no better not.'
# This is the section of the function
after-first-time
:
# Defines whether it will be activated or deactivated.
enabled
: true
# What will be executed if the player has already interacted with the npc (if you don't want something to happen, delete it).
dialog:
- 'SEND
:
&c[NPC] &b
%npc_name%&f: Don't talk to me...'
· The lang.yml file was updated, if you wish, delete it before starting your server.
· Fixed some problems with the memory data that the plugin has at the moment of an error when executing a dialog.
· A new subcommand has been added to the main command, it tries to clear a player that is stuck in the memory cache, you can use "characterdialogue clear-cache playerName" to get him out of there.
If you wonder what this would be useful for, it is just an extra that will serve if you can not interact with the npc again, run the command to your person and you can do it, the problems with the cache are because of the errors that have the methods of the dialogs, that is, if you put something wrong, and the algorithm of the method fails, you will be stuck in the memory cache. So yes, it serves to give you (a hand), since in previous versions, you had to restart the server to get out of there.
· Small changes.