utarwyn / EnderContainers

A modern and customizable Bukkit plugin to divide enderchest into multiple inventories.
https://spigotmc.org/resources/4750/
BSD 3-Clause "New" or "Revised" License
24 stars 14 forks source link

Add support of multiple save modes #261

Closed utarwyn closed 3 months ago

utarwyn commented 3 months ago

Description

According to the latest open tickets, there seem to be several cases of lost data. Under normal circumstances, the default option of saving data when the player logs out is sufficient, and avoids putting too much strain on the hard disk. However, in certain configurations, the server may crash (this is not normal), resulting in data loss.

To ensure that the plugin is suitable for everyone, an additional save mode has already been added on inventory closure. In this case, the plugin will make much greater use of disk and CPU.

Another solution has been proposed: save the chests at the same time as the world. This could be the most "balanced" and effective solution. Note, however, that the enderchest is not linked to a world, so there may be several successive saves if you have several worlds. This PR proposes this experiment with a new configuration.

Changes

Related Issues

Replaces #231 Resolves #130

Checklist

🙏 Thanks to @Kamesuta for his work on the feature

sonarcloud[bot] commented 3 months ago

Quality Gate Passed Quality Gate passed

Issues
3 New issues
0 Accepted issues

Measures
0 Security Hotspots
86.5% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud