pdinklag / MinecraftStats

A Minecraft player statistics browser for the web - supports 1.13 and later!
https://discord.gg/brH5PGG8By
Other
227 stars 53 forks source link

Optionally force UUID to name resolution using Mojang API for non-cached players #46

Closed pdinklag closed 5 years ago

pdinklag commented 5 years ago

When players aren't in the usercache.json, they aren't found. As seen in #45 this can be an issue for new Minecraft Stats installations where all players should be imported.

Resolving UUIDs to names from the Mojang API would be too expensive to do each time update.py is invoked, so something like a --force-resolve-uuid option would help here.

pdinklag commented 5 years ago

Figured one could just get all UUIDs from the stats directory and retrieve the name via the profile after all. It can happen once for every player to bootstrap the database, and updates occur only for active players (unless --update-inactive is given).