FancyMcPlugins / FancyNpcs

FancyNpcs is a simple, lightweight and fast npc plugin using packets
https://modrinth.com/plugin/fancynpcs
MIT License
98 stars 23 forks source link

Ability to disable saving #92

Closed JonasDevDE closed 3 months ago

JonasDevDE commented 4 months ago

It would be cool if its possible to disable saving npcs in the config, some servers use cloud technology and want to manage their storage themselves.

OliverSchlueter commented 3 months ago

You can set Npc#setSaveToFile to false, then it won't save the npc.

JonasDevDE commented 3 months ago

You can set Npc#setSaveToFile to false, then it won't save the npc.

Ah okay, but doesn't it also get saved by just creating it?

OliverSchlueter commented 3 months ago

No, it only gets saved in the autosave-scheduler and onDisable. To make sure, you can set setSaveToFile to false before registering it to the NpcManager

JonasDevDE commented 3 months ago

No, it only gets saved in the autosave-scheduler and onDisable. To make sure, you can set setSaveToFile to false before registering it to the NpcManager

Ah, okay. Thanks! 👍