Error when loading a world

When I try to load a world with following code:

Optional<World> load = Sponge.getGame().getServer().loadWorld("plots");

I get this error:

Error occurred while executing command ‘world load plots’ for source EntityPlayerMP[‘Hitzk0pf’/260, l=‘world’, x=-1677.95, y=78.12, z=55.31]: null
at ~[bqo.class:?]
at net.minecraft.server.MinecraftServer.loadWorld( ~[MinecraftServer.class:?]
at me.Hitzk0pf.CaveCore.commands.World.WorldLoad.process( ~[WorldLoad.class:?]
at org.spongepowered.api.command.args.ChildCommandElementExecutor.execute( ~[ChildCommandElementExecutor.class:1.8-1577-3.1.0-BETA-1023]
at org.spongepowered.api.command.spec.CommandSpec.process( ~[CommandSpec.class:1.8-1577-3.1.0-BETA-1023]
at org.spongepowered.api.command.dispatcher.SimpleDispatcher.process( ~[SimpleDispatcher.class:1.8-1577-3.1.0-BETA-1023]
at org.spongepowered.common.command.SpongeCommandManager.process( [SpongeCommandManager.class:1.8-1577-3.1.0-BETA-1023]
at net.minecraft.command.ServerCommandManager.func_71556_a(SourceFile:83) [cl.class:?]
at [rj.class:?]
at [rj.class:?]
at [lu.class:?]
at [lu.class:?]
at$1.onProcessPacket(SourceFile:110) [ih.class:?]
at$ [ih.class:?]
at java.util.concurrent.Executors$ [?:1.8.0_66]
at [?:1.8.0_66]
at net.minecraftforge.fml.common.FMLCommonHandler.callFuture( [FMLCommonHandler.class:?]
at net.minecraft.server.MinecraftServer.func_71190_q( [MinecraftServer.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q( [po.class:?]
at net.minecraft.server.MinecraftServer.func_71217_p( [MinecraftServer.class:?]
at [MinecraftServer.class:?]
at [?:1.8.0_66]

Strange thing: when I want to rename this world → error:

Error occurred while executing command ‘world rename plots plot’ for source EntityPlayerMP[‘Hitzk0pf’/260, l=‘world’, x=-1678.11, y=46.87, z=100.49]: World still loaded
java.lang.IllegalStateException: World still loaded

And when I want to unload it, it says, that there is no world with that name. Can it be, that there is a a wrong information somewhere in my sponge config files?

Any ideas?
Thanks :slightly_smiling:

IDK about the renaming because I haven’t tested it lately but the other error I mentioned here the other day, so I assume it’s being handled.

1 Like

It’s exactly the same issue, when will they add the pushed “WorldMigrator” class?) :frowning: is there a way to get two bukkit worlds working? I tried it all day long, but could not find a solution…
Thanks :slightly_smiling:

Yes they do care, if you look at the issue it’s clearly been marked as high priority.

1 Like

Yeh, I know, I edited my post a couple minutes ago (I expressed myself poorly) :slightly_smiling:

I wouldn’t say that. They did mark it as a high priority shortly after I posted the error. The only way I’ve found to get bukkit worlds working is to manually create a level_sponge.dat file, which is not a best of ideas because you have to assume the world generator type, and pick a unique dimension id and name. If you do manage to get as far as creating the dat file, the server should load the world automatically assuming the the settings mentioned in the dat file are correct. There’s probably an easier way if you set SpongeCommon and a dependency but I haven’t got into all that. I’d recommend waiting for a a fix because in the end all that extra work will be for nothing anyways

1 Like

As I said in my last post, I didn’t want to say it like I did (so I edited it a few moments after I replied). Thanks for helping out :slightly_smiling:

Fixed the crash