Add UUID fetching for portals still using owner name #12

Closed
opened 2021-10-22 15:43:10 +02:00 by EpicKnarvik97 · 1 comment

Right now, the plugin supports both owner name and owner UUID for portals. For new portals, UUID will be used, but for old ones, the UUID is never fetched to upgrade from player names to UUID.

A thread should be run after a delay of something like half an hour. It should try to fetch UUIDs of all portal owners which currently don't have a UUID. It should only be run once each time the server starts up. If found, UUID should be updated for the portals and a save should be performed.

It might be most efficient to get the missing UUIDs during portal loading.

Right now, the plugin supports both owner name and owner UUID for portals. For new portals, UUID will be used, but for old ones, the UUID is never fetched to upgrade from player names to UUID. A thread should be run after a delay of something like half an hour. It should try to fetch UUIDs of all portal owners which currently don't have a UUID. It should only be run once each time the server starts up. If found, UUID should be updated for the portals and a save should be performed. It might be most efficient to get the missing UUIDs during portal loading.
EpicKnarvik97 added the
enhancement
label 2021-10-22 15:43:10 +02:00
EpicKnarvik97 added this to the Better stargates project 2021-10-22 15:46:33 +02:00
Author
Owner

The actual implementation became to store a map of all player names to migrate and a list of their owned portals. When a player joins, their name will be checked against the map and the name will be replaced by the player's UUID if necessary.

The actual implementation became to store a map of all player names to migrate and a list of their owned portals. When a player joins, their name will be checked against the map and the name will be replaced by the player's UUID if necessary.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: EpicKnarvik97/Stargate#12
No description provided.