BentoBoxWorld/Upgrades

Not loading upgrades after update of addons

Kesims opened this issue · 5 comments

Description

Describe the bug

Hello. After I upgraded 3 addons (Level 2.4.1 -> 2.5.0, Upgrades SNAPSHOT-b64 -> b74, Limits 1.14.0 -> 1.15.0), all old upgrades that players purchased befor this update are not loading. In database there is for examle HOPPER: 18, but in reality it does not increase. When I purchase 19th upgrade of hopper, limit increases only 1times (like if I had purchased only 1 hopper upgrade).

Expected behavior

Load all purchased upgrades.

Output of /bbox version (Mandatory)
[07:49:03 INFO]: Running PAPER 1.16.3.
[07:49:03 INFO]: BentoBox verze: 1.15.2
[07:49:03 INFO]: Database: JSON
[07:49:03 INFO]: Loaded Game Worlds:
[07:49:03 INFO]: bskyblock_world (BSkyBlock): Overworld, [nether_color]Nether, [end_color]End
[07:49:03 INFO]: Loaded Addons:
[07:49:03 INFO]: Biomes 1.13.0 (ENABLED)
[07:49:03 INFO]: Border 2.0.0 (ENABLED)
[07:49:03 INFO]: BSkyBlock 1.14.2-SNAPSHOT-b676 (ENABLED)
[07:49:03 INFO]: Challenges 0.8.3 (ENABLED)
[07:49:03 INFO]: Chat 1.1.1 (ENABLED)
[07:49:03 INFO]: Level 2.5.0 (ENABLED)
[07:49:03 INFO]: Limits 1.15.0 (ENABLED)
[07:49:03 INFO]: MagicCobblestoneGenerator 2.1.0 (ENABLED)
[07:49:03 INFO]: Upgrades 0.2.0-SNAPSHOT-b74 (ENABLED)
[07:49:03 INFO]: Warps 1.9.7 (ENABLED)

Plugins (Optional)

[07:50:06 INFO]: Plugins (53): AdvancedChests, AdvancedEnchantments, ArmorStandEditor, AsyncWorldEdit, AuctionHouse, BentoBox, ChestShop, Citizens, CMI, CMIPaperLib, CommandNPC*, CraftingStore, DiscordSRV, dtlTraders, FastLogin, FlightPlus, HeadZ, HolographicDisplays, InteractiveBoard, ItemGenerators*, JetsHoppers, JetsMinions, KiteBoard*, Lib1711*, LoginSecurity*, MineableSpawners, MOTD, Multiverse-Core, NonSquareMines*, NoPhysics, PermissionsEx*, PlaceholderAPI, Plan, PlayerHeads*, ProtocolLib, SkinsRestorer, SuperbVote, TabuuCore, TimeIsMoney*, TreeAssist, UltraCustomizer, Vault, ViaVersion, VillagerOptimiser, VoidGenerator, VoidSpawn, Votifier, Voting*, WorldBorderAPI, WorldEdit, WorldGuard, WorldGuardExtraFlags, XProtect*

Additional context (Optional)

Also the Limits addon is doing weird things - in console it outputs [Limits] Limit HOPPER to 350, but in reality it loads only 200 (old value). Maby it is fault of this addon. I have tried replacing newly updated addons back with old ones, but that didnt help.

Yes, this addon is the problem.
There is a breaking bug in this version with limits.
I'm waiting for an issue to be fixed in limits, but it's taking longer than expected. I'll push a fix for it.
This bug is that on each connection, islands limits are reset to default ones.

Still not working, even on build 79. When I updated Limits addon, purchased upgrades wiped again and are not loading. But in database they are counted and in /is upgrades it shows that player purchased max upgrades.

Did you reset the upgrades since the build 79 ?
If not, that's normal because of the stupid way I coded it.
I'm still working on refactoring it.

I received an email, but don't see the message.

So the only way that the database can reappear after having deleted it is that you deleted it while the server was running.

Yes, exactly. I accidentally deleted the folder before stopping the server, second try I did it right..