Jump to content

How to get the save name of the world? [SOLVED]


TurtyWurty

Recommended Posts

Hello everyone, I was wondering how you get the name of the world. Just to solve any confusion with this, i mean the save name so for example, the default name is New World. So basically I want to get this name. I have already tried several things, but sadly none have given me what I have been looking for, I have tried:

world.getWorldInfo().getWorldName()

But this gave me back MpServer, which was not the world name. I also tried:

world.getProviderName()

but that gave me something about chunks, so basically not what I was looking for. So if anyone knows that would be much appreciated! ??

 

I solved it by doing:

world.getServer().getWorldName()

 

Edited by TurtyWurty
solved
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.