BentoBoxWorld / BentoBox

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

BSkyblock not loading #2003

Closed iGuillem closed 2 years ago

iGuillem commented 2 years ago

Expected behavior

Should load

Observed/Actual behavior

[10:09:26] [Server thread/INFO]: [BentoBox] Enabling game mode addons... [10:09:26] [Server thread/INFO]: [BentoBox] Enabling BSkyBlock (1.15.2-SNAPSHOT-b718)... [10:09:26] [Server thread/ERROR]: [BentoBox] Skipping BSkyBlock due to an unhandled exception... [10:09:26] [Server thread/ERROR]: [BentoBox] java.lang.IllegalArgumentException: Cannot create a world with key minecraft:skyblock and name skyblock one (or both) already match a world that exists at org.bukkit.craftbukkit.v1_19_R1.CraftServer.createWorld(CraftServer.java:1155) at org.bukkit.Bukkit.createWorld(Bukkit.java:767) at org.bukkit.WorldCreator.createWorld(WorldCreator.java:474) at BSkyBlock-1.15.2-SNAPSHOT-b718.jar//world.bentobox.bskyblock.BSkyBlock.getWorld(BSkyBlock.java:130) at BSkyBlock-1.15.2-SNAPSHOT-b718.jar//world.bentobox.bskyblock.BSkyBlock.createWorlds(BSkyBlock.java:101) at BentoBox-1.21.0-SNAPSHOT-b2277.jar//world.bentobox.bentobox.managers.AddonsManager.enableAddon(AddonsManager.java:304) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) at BentoBox-1.21.0-SNAPSHOT-b2277.jar//world.bentobox.bentobox.managers.AddonsManager.enableAddons(AddonsManager.java:250) at BentoBox-1.21.0-SNAPSHOT-b2277.jar//world.bentobox.bentobox.managers.AddonsManager.reloadAddons(AddonsManager.java:405) at BentoBox-1.21.0-SNAPSHOT-b2277.jar//world.bentobox.bentobox.commands.BentoBoxReloadCommand.lambda$execute$0(BentoBoxReloadCommand.java:57) at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftTask.run(CraftTask.java:101) at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483) at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1490) at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:446) at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1414) at net.minecraft.server.MinecraftServer.v(MinecraftServer.java:1187) at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:302) at java.base/java.lang.Thread.run(Thread.java:833)

Steps/models to reproduce

I have updated Paper (1.18.2) and BSkyblock doesn't seem to recognize my current world. I also tried in 1.19, but same problem. current overworld: SkyBlock current nether: SkyBlock_nether current end: SkyBlock_the_end

BentoBox version

[12:12:25] [Server thread/INFO]: Corriendo PAPER 1.18.2 [12:12:25] [Server thread/INFO]: BentoBox version: 1.21.0-SNAPSHOT-b2277 [12:12:25] [Server thread/INFO]: Database: JSON [12:12:25] [Server thread/INFO]: Mundos de juego cargados: [12:12:25] [Server thread/INFO]: Addons cargados: [12:12:25] [Server thread/INFO]: Biomes 1.14.1-SNAPSHOT-b214 (DISABLED) [12:12:25] [Server thread/INFO]: Border 4.0.0-SNAPSHOT-b143 (ENABLED) [12:12:25] [Server thread/INFO]: BSkyBlock 1.15.2-SNAPSHOT-b718 (ERROR) [12:12:25] [Server thread/INFO]: Chat 1.1.4 (ENABLED) [12:12:25] [Server thread/INFO]: Level 2.9.1-SNAPSHOT-b506 (ENABLED) [12:12:25] [Server thread/INFO]: Likes 2.3.0 (DISABLED) [12:12:25] [Server thread/INFO]: Limits 1.19.1-SNAPSHOT-b297 (ENABLED) [12:12:25] [Server thread/INFO]: Warps 1.12.0 (ENABLED)

Plugin list

Plugins (3): BentoBox, LuckPerms, Vault

Other

I think it's due to this commit in build 348: https://github.com/PaperMC/Paper/commit/182a609b85b8a711b04cae45ea03bad19367ea21 I have tested on build 347 and BSkyblock works correctly

BONNe commented 2 years ago

It would mean that someone already created these worlds before BentoBox.

Is Skyblock your default world?

iGuillem commented 2 years ago

Yes i also have bentobox as generator in bukkit.yml

BONNe commented 2 years ago

Oh, it is because of the capital letters in world name. Paper for a while forbidding capital letters in new world names.

The change you marked just enforced it via World Duplication.