DiscordSRV

DiscordSRV

86.8k Downloads

DiscordSRV LuckPerms Hook requested linked account information on the main thread

mibby opened this issue ยท 3 comments

commented

LuckPerms dev 1232
DiscordSRV-Build-1.21.2-SNAPSHOT-1609277171 - 81911b6

[14:50:44] [Server thread/WARN]: [DiscordSRV] API user github.scarsz.discordsrv.hooks.permissions.LuckPermsHook.calculate(LuckPermsHook.java:113) requested linked account information on the main thread while MySQL is enabled in DiscordSRV's settings
[14:50:44] [Server thread/WARN]: [DiscordSRV] Requesting data for offline players on the main thread will lead to a exception in the future, if being on the main thread is explicitly required use getDiscordIdBypassCache / getUuidBypassCache

https://github.com/DiscordSRV/DiscordSRV/blob/develop/src/main/java/github/scarsz/discordsrv/hooks/permissions/LuckPermsHook.java

commented

when does this happen and does it happen once or more often

commented

It happens on server start-up. I only saw it the one time immediately after I logged in. I assume it would occur on the first login of anyone after a restart.

However I also came across this one in my logs after someone joined. Also only happened once thus far.

[15:26:50] [Server thread/WARN]: [DiscordSRV] API user github.scarsz.discordsrv.objects.managers.link.JdbcAccountLinkManager.onPlayerJoin(JdbcAccountLinkManager.java:574) requested linked account information on the main thread while MySQL is enabled in DiscordSRV's settings
[15:26:50] [Server thread/WARN]: [DiscordSRV] Requesting data for offline players on the main thread will lead to a exception in the future, if being on the main thread is explicitly required use getDiscordIdBypassCache / getUuidBypassCache
commented

Pushed a few changes around this, https://snapshot.discordsrv.com