Sponge
Sponge copied to clipboard
UserStorageService#get queries data from Mojang
I am currently running
- SpongeVanilla version: stable-7
- Java version: 1.8.0_121
- Operating System: Windows 10
When calling UserStorageService#get(UUID)
, if the user has not joined the server yet, the SpongeUserStorageService will try to create a new User by querying it's GameProfile data from Mojang. Since User
is a representation of the player data of an player who ever joined the server, I'd expect service.get(UUID)
to return an Optional.empty()
for users who haven't played in the server yet. I may be misundertanding the terms here, if so, some clarification would be appreciated.
I'm having problems with this because I'm loading data from many UUIDs, and wanted to get the name of the users for the ones who ever played in the server, but this is triggering many queries to Mojang, and I'm getting a lot of AuthenticationException
s.