BentoBoxWorld / BentoBox

Expandable Minecraft server plugin for island-type games like SkyBlock or AcidIsland.
https://bentobox.world
Eclipse Public License 2.0
334 stars 136 forks source link

Database fix command not work #1568

Closed andris155 closed 3 years ago

andris155 commented 3 years ago

Description

Describe the bug

/acid fix command writes error and not working. My database is chaos because Bentobox nulled json files when my server crashed. I restored files (not all, only lost files) from backup, but the backup is couple of weeks older.

Steps to reproduce the behavior

Type /acid fix

Expected behavior

/acid fix command fix my database?

Screenshots and videos (Optional)

Environment

Output of /bbox version (Mandatory)
[09:56:31] [Server thread/INFO]: Fut PAPER Helytelen.
[09:56:31] [Server thread/INFO]: BentoBox verzió: 1.15.2-SNAPSHOT-b1896
[09:56:31] [Server thread/INFO]: Adatbázis: JSON
[09:56:31] [Server thread/INFO]: Betöltött játékvilágok:
[09:56:31] [Server thread/INFO]: acidisland_world (AcidIsland): Overworld, Nether, The End
[09:56:31] [Server thread/INFO]: Betöltött kiegészítők:
[09:56:31] [Server thread/INFO]: AcidIsland 1.14.4 (ENABLED)
[09:56:31] [Server thread/INFO]: Biomes 1.13.0-SNAPSHOT-b196 (ENABLED)
[09:56:31] [Server thread/INFO]: Challenges 0.8.4-SNAPSHOT-b432 (ENABLED)
[09:56:31] [Server thread/INFO]: Chat 1.1.1 (ENABLED)
[09:56:31] [Server thread/INFO]: DimensionalTrees 1.6.1-SNAPSHOT-b82 (ENABLED)
[09:56:31] [Server thread/INFO]: Greenhouses 1.4.0 (ENABLED)
[09:56:31] [Server thread/INFO]: Level 2.5.0-SNAPSHOT-b420 (ENABLED)
[09:56:31] [Server thread/INFO]: Likes 2.1.0-SNAPSHOT-b31 (ENABLED)
[09:56:31] [Server thread/INFO]: MagicCobblestoneGenerator 2.2.0-SNAPSHOT-b175 (ENABLED)
[09:56:31] [Server thread/INFO]: Warps 1.10.1-SNAPSHOT-b268 (ENABLED)

Plugins (Optional)

[09:58:31] [Server thread/INFO]: Plugins (92): AdminVedelem, antiRedstoneClock, AnvilRestrict, ArmorStandEditor, BentoBox, BetterGUI, BungeeHelpop, BuntetesLogolo, ChatControl, ChatReaction, ChestShop, ChestSort, Citizens, CompatNoCheatPlus, ConditionalCommands, CoreProtect, CraftBook, CratesPlus, CrazyAuctions, CrazyAuctionsLog, CS-CoreLib, CustomCrafting, Duels, DyedBackpacks, EcoPower, EnderContainers, EntityDetection, Essentials, EssentialsChat, EssentialsProtect, EssentialsSpawn, EventekGUI, EventRendszer, ExtraGear, ExtraTools, (WorldEdit)FastAsyncWorldEdit, FluffyMachines, HeadDatabase*, HolographicDisplays, Jatekido, Kemkedes, Kezdes, LiteXpansion, LockettePro, Lottery, LuckPerms, mcMMO, MineMarket-Universal, MobFarmManager, Multiverse-Core, Multiverse-NetherPortals, MyCommand, NoCheatPlus, OpenInv, PickupSpawners, PlaceholderAPI, PlugMan, PocketGames, PomaBot, PomaDrops, PomaExpansion, PotionArmors, PremiumAds*, ProtocolLib, RedstoneClockDetector, RemoveUnbreaking, RestrictedCreative, ShopGUIPlus, Shopkeepers, SkinsRestorer, sleep-most, Slimefun, SlimefunLuckyBlocks, SlimefunPomaFix, StaffChat, StaffTime, SzulinapiKalapok, TAB, TimeIsMoney*, TokenManager, TokenShopEditor, TokenStaff*, TreasureChest, Vault, Votifier, VotingPlugin, WDLCompanion*, WolfyUtilities, WorldBorder, WorldGuard, WorldGuardExtraFlags, WorldGuardPomaFlags

Additional context (Optional)

https://pastebin.com/ekWzEePv

tastybento commented 3 years ago

Can you share your database? Zip it up and drop it into this response box, or use DropBox or something. I'll then be able to confirm the fix command works.

andris155 commented 3 years ago

https://drive.google.com/file/d/1culyZDSWRkzG_NuDMcPopoqlW-Mwam18/view?usp=sharing

tastybento commented 3 years ago

Try the latest snapshot when it builds. Make a backup of your database and then run /acid fix and then shutdown and restart. I tested with your database. The difference with yours was that you have a number of players with ownership of more than one island and situations where the owner is duplicated as a member. Anyway, this will make the database logically correct. If players had more than one island then I just picked the one that was currently loaded as being theirs. There is no other way to work it out. So, you may have to move players if they are on the wrong island.

andris155 commented 3 years ago

Thanks!