BentoBoxWorld / Upgrades

BentoBox Addon for upgrading island with the use of Vault Money
5 stars 4 forks source link

Upgrades Data Resetting #56

Open SkyLyfe opened 9 months ago

SkyLyfe commented 9 months ago

Expected behavior

Upgrades data should not completely reset after server crash, should use the last saved data prior to crash.

Observed/Actual behavior

Upgrades data seems to completely reset if server crashes. It seems the bentobox "backup-period" setting in config has no effect on upgrades? Just a theory.

Note: Tested with json, sqlite, and mariadb.

For example, with mariadb it completely cleared the database table: image

Steps/models to reproduce

Upgrade island range or limits using /is upgrades. Simulate a crash. The /is upgrades gui will show level 1 for every upgrade, but your actual island range & limits will be what you upgraded them to.

BentoBox version

Running PAPER 1.20.4. (git-Paper-431 (MC: 1.20.4)) BentoBox version: 2.1.1-SNAPSHOT-b2566 Database: MARIADB Loaded Game Worlds: skyblock (SkyBlock): Overworld, Nether, The End Loaded Addons: Bank 1.7.1-SNAPSHOT-b87 (ENABLED) Biomes 2.2.0-SNAPSHOT-b256 (ENABLED) Border 4.2.2-SNAPSHOT-b196 (ENABLED) BSkyBlock 1.17.0-SNAPSHOT-b752 (ENABLED) Chat 1.2.0 (ENABLED) Level 2.12.1-SNAPSHOT-b560 (ENABLED) Limits 1.20.1 (ENABLED) Upgrades 0.3.0-SNAPSHOT-b133 (ENABLED)

Plugin list

Server Plugins (80): Bukkit Plugins:

Other

Edited based on new info after further testing