Incorrect functioning of ModelEngine with the Citizens2 plugin - Disappearing models, configuration not saving
I create a new NPC, add the trait parameter "meg_model," and assign it a model using the command ./meg npc. Everything seems normal, and the NPC model changes.
I noticed that changes in the "meg_model" parameter do not appear in the Citizens2 configuration. Despite this, the model displays correctly. Models start disappearing upon server restart or when leaving the map where the NPC is located. I can't pinpoint the exact moment when the models disappear. I should mention that there are already NPCs on the server, across different worlds, using the same models I intended to use, and they behave correctly.
I conducted a small experiment and changed the permissions of the Citizens2 configuration file to 444. It seems to have partially solved the problem... but it might just be a coincidence. I also tried transferring the "meg_model" parameter from other NPCs that use the same model. After some time, this parameter disappears from the configuration file!