You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check inventory authentication status only on cache
In #2112, we found out that in configurations with disabled cache (like Bungee), this adapter will perform blocking queries on the main thread which impacts the performance.
The original code (81cf14f) is in place to
preserve the inventory for unregistered and configurations without enforcing a registration (#1830, #1752). Alternatives are:
1. Send the inventory on registration like p.updateInventory()
* Still hides it before for unregistered
2. Checking for the enforce registration setting would mean it hides also the inventory for unregistered players
3. Get a notification on player status changes
* Requires a complex setup to propagate the changes across spigot servers
or different solution for web interfaces
* Refresh events, when the status is updated within the plugin itself however would be possible, however requires previous queries like registration/login requests. Instant reports about registration will still be complicated.
So the best solution is to use the cache if available and if not fallback to safe defaults.
0 commit comments