Skip to content
This repository has been archived by the owner on Jan 14, 2025. It is now read-only.

Stop using world name. Start using world UUID. #3

Open
dumptruckman opened this issue May 20, 2013 · 3 comments
Open

Stop using world name. Start using world UUID. #3

dumptruckman opened this issue May 20, 2013 · 3 comments

Comments

@dumptruckman
Copy link
Member

No description provided.

@ghost
Copy link

ghost commented May 20, 2013

what?

@socram8888
Copy link

Rather than using world names to identify the world in configuration files, inventories..., use worlds' UUID (Universal Unique IDentifier), so even if you create a new world with the same name, Multiverse wouldn't use the old configuration, as its UUID would be different.

Minecraft use the UUID rather than the world name to identify where's the player when quitting.

@ryantheleach
Copy link

As found in SpongePowered servers using the UUID for world identification ends up with a less then great user experience, considering users often copy the worlds, and reimport them cloning/changing the UUID.

UUID's are also pretty unfriendly for human entry.

It also seems that you always need to fall back to directory names anyway.

In short, UUID's are great for internal use only, like inventories or data.

Settings for worlds work best when stored in the world save directory directly, as then people copy the world configuration when they copy and rename worlds.

Also at this stage, the user's expectations are either that copying will lose association with configs, or that copying should maintain association with data.

Drawing the line between data and configuration is the hard part.

I suggest that the 'names' that are exposed to users in global configs are based on directory names. Use these in global configs, but not inventories or data, these or mvaliases are also probably your best bet for permissions, considering other plugins are also likely to use directory names in this manner.

Ingame use the multiverse alias, or the NBT name stored in the level.dat set by single player, or world editors, you will need to disambiguate when multiples exist, as it's not guarantee'd to be unique.

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

No branches or pull requests

3 participants