I propose that there be no interface accepting Player or OfflinePlayer so that this system is not "responsible" for any UUID lookups.
Specification should include allowing multiple types of UUID, e.g.
- Type 4: Authenticated user
- Type 3: Non-authenticated user
- Type 2: Bot/NPC/other
Possible extension to this, providing an API for UUID generation that produces plugin-unique UUIDs, such as providing 64 bits of ID (double) and the rest generated based on the plugin name or some other string:
UUID createPluginUUID(Plugin plugin, double id);
Example functionality for this:
- NPC economy accounts
- Faction/Town/Guild accounts
- Some sort of ephemeral account I don't know I'm sure there's something.
I propose that there be no interface accepting
PlayerorOfflinePlayerso that this system is not "responsible" for any UUID lookups.Specification should include allowing multiple types of UUID, e.g.
Possible extension to this, providing an API for UUID generation that produces plugin-unique UUIDs, such as providing 64 bits of ID (
double) and the rest generated based on the plugin name or some other string:Example functionality for this: