Posted November 25, 201212 yr It seems that world.getWorldInfo().getWorldName() only works on the server side. For the client, it's always set to "MpServer". Does anyone know of a way for the client to find the real name of the world?
November 25, 201212 yr You could use World.saveHandler.getSaveDirectoryName() to get it. But there should be a better way.
November 25, 201212 yr Hi, If the mod is also serverside, you can use packets. Have the client ask the server and have the server reply with the result from your function. Probably is a better way though, I would think it would be built in; but I dunno. -Green Thanks for your time... Hopefully I can reply soon after you reply, but I'm busy, anyways. I can't wait to start working on my mod. I haven't worked on it in a while but it is on Github. It needs much more organization and work, I have lots of plans.
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.