EnderContainers

EnderContainers

2.5k Downloads

AutoSave + Prefix

nivcoo opened this issue ยท 17 comments

commented

Hello, can you add a command or option to save into the file, because if server crash the data is rollback.

commented

So I would like both maybe a command to save and an async automation system

commented

Then you can put the prefix in the language? I have to compile the plugin each time to change it

commented

Hum, so /ecp reload saves actually all enderchest ?

commented

My server does not "crash" but often it does not stop entirely without error or something that could prevent it from stopping during my automatic restart, so saving the enderchest before restarting the server would be good ^^

commented

Hello @nivcoo, thank you for these ideas!

Yes there is no command to force the data saving because of conflicts which can happen is certain cases. That is why I recommand the use of command /ecp reload which closes inventories, saves all enderchests and reloads the configuration in a proper order to avoid saving/loading problems.

As the plugin was designed to be as efficient as possible, the plugin saves player data only when it leaves the server. It works well 99.9% of the time! BUT indeed in case of a hard crash (but why does that occur?), a part of connected players data will be rollback. We can discuss a new option to be added in the configuration to force saving player data every time a chest is closed. (which will be disabled by default, I'm not a big fan of the idea) What do you think of that?

I have planned to remove entirely the prefix because it is useless, see more details here: #127

commented

Yes the command /ecp reload saves all enderchests and reloads everything. It could be a nice idea for you to execute it before the server stops if you can? But not at a given interval of time because it also closes all inventories of the plugin, so your players would be surprised.

commented

Yes i execute 3 commands before restart : ecp reload | save-all | stop (Because my script autorestart after that but sometimes the server stay blocked in the desactivation of one plugin (random) and idk why)

commented

Besides, I don't know if there were any postponements of that but after a /ecp reload the essentials command is no longer ovewrite, so the / enderchest command no longer works

commented

Ugh.. maybe a wrong behavior of the Essentials dependency, I will check that! So, your problem with data saving has been solved thanks to /ecp reload executed right before the server stop?

commented

Any news @nivcoo ?

commented

I think it works

commented

Ok thank you for the fast feedback. I have done some tests with Essentials but on my test server the /enderchest command is still managed by EnderContainers even after a reload, but I will do more tests I hope to find the bug.. Which version of Essentials do you use?

commented

The latest version of essentialsx on spigot

commented

And i havent tried today but the command is /ec which not works

commented

Hello @nivcoo! I have identified the bug and it should be fixed in my last commit :)
You can download the latest build with the fix here: https://ci.utarwyn.fr/job/EnderContainers/ (current version jar)

Sorry for the delay and the inconvenience caused by this bug..

commented

Thx i will try

commented

Hello, can you add AutoSave when we close the chest or something else in async because if my server crashes there is a huge data rollback. Thx :p