Getting a World from a string saved in a config

I am attempting to save the world name/id to a config and then load it to spawn things in a certain dimension.

I can provide more information if any is needed.

Server#loadWorld

Use World.getUniqueId() or WorldProperties.getUniqueId() to get a UUID object, and then use toString() to save it. When loading, use UUID.fromString() to load the UUID, then use Sponge.loadWorld() to get the world back.

Thank you both, I think this will solve my issues.

I think I will translate the world name to get the world instance and save the UUID to the config