Change book folders to UUID #6
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.