Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve new world creation location #26

Closed
marcuswhybrow opened this issue Jun 17, 2012 · 1 comment
Closed

Improve new world creation location #26

marcuswhybrow opened this issue Jun 17, 2012 · 1 comment
Assignees
Milestone

Comments

@marcuswhybrow
Copy link

Servers always create new worlds in the current directory according to the running jar. In MSM's case this is the server directory. The problem is we really want worlds to be in the worldstorage directory. We cannot change the behaviour of the server, but we can fool it.

Before starting a server MSM creates symbolic links in the server directory pointing to worlds in the worldstorage directory. If the world that the server is going to use exists in world storage, the link is made in the server directory, the server sees that link as the world and all is fine. If the world does not yet exist, there is no link and so the new world folder gets created in the wrong place.

The solution: By inspecting the server.properties file we can glean the name of the world a server is expecting to use, and before it starts create an empty folder in world storage with the same name. The link will then get created, and the server will still create the world files—in the correct place—via the dynamic link.

@ghost ghost assigned marcuswhybrow Jun 17, 2012
marcuswhybrow pushed a commit that referenced this issue Sep 2, 2013
Fixes #26 by ensuring a symlink for level-name exists to worldstorage be...
@omkelderman
Copy link

So if i understand this correctly the default world "world" should end up automatically in the wordstorage directory on server-creation?
Because if that's the case there is a bug, since it is NOT doing that for me....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants