Items list format:
When you use the /udi additem command, the items will be added as follows to the config, the format has to be this for the plugin to work properly.
Note: The text below is not required to be read to use the plugin, as the additem or removeitem commands can be used to handle the list of undroppable in-game items. But it is advisable to read this text as it explains how items are added to this list. In any case, if you have any problems with the plugin, I recommend you read this text and then, in case you cannot solve your problem, go to my discord and I will help you with pleasure.
-
All the items that you add to this list will have the following format: To begin with, they will all be added with the name of their material, in the screenshot you can see that the stone and sand are added to the list. Then, there is a flag that is "undroppable", this flag will be added to the item in case when using the command </udi additem>, the item you have in your hand does not have a name or a lore. This flag will make every item of that material undroppable, as long as the flag is true. Then, there is the <Material>.lore section, this section will be added in case the item you have in hand only has lore and no name. This will make every item of that specific material (in this case stone) that has that lore undroppable. Then there are the named items, for example in the screenshot you see a stone item with the name "xd2", this section will be added if the item that is added with the command mentioned above only has a name and does not have lore (ignore the path that says "name" below, will always appear empty regardless of the name of the item, but the path of "name" should not be removed, because otherwise the plugin will not work correctly). This will make any stone with the name "xd2" undroppable. And finally, the section of the screenshot that says "xd1", this section will be added when the item that is being added to the list has a name and also has lore. This section will make every item that is a stone (in this case), that has the name "xd1" and that has the lore "pruebaxd1" be undroppable.