Change book folders to UUID #6

Closed
opened 2022-08-10 00:48:13 +02:00 by EpicKnarvik97 · 0 comments

As this is the time of UUIDs, it's really about time books are stored in folders by UUID rather than usernames. If possible, something should be done to store the UUID owner/author of a book.

When a player joins, if a book folder has their name, rename it to their UUID. As a player only has access to their books, it can be safely assumed that after this is implemented, the UUID is the only folder that needs to be checked.

Save any book with the player's name as the author under the player's UUID. Convert it back on tab completion and when loading the book.

As this is the time of UUIDs, it's really about time books are stored in folders by UUID rather than usernames. If possible, something should be done to store the UUID owner/author of a book. When a player joins, if a book folder has their name, rename it to their UUID. As a player only has access to their books, it can be safely assumed that after this is implemented, the UUID is the only folder that needs to be checked. Save any book with the player's name as the author under the player's UUID. Convert it back on tab completion and when loading the book.
EpicKnarvik97 added the
enhancement
label 2022-08-10 00:48:13 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: EpicKnarvik97/Books-Without-Borders#6
No description provided.