mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-10-31 07:39:42 +01:00
Prevent another deadlock in LuckPermsHandler #1350
This commit is contained in:
parent
45dda0deba
commit
fafbef6be7
@ -49,7 +49,12 @@ public class LuckPermsHandler implements PermissionHandler {
|
||||
return getUser(player);
|
||||
}
|
||||
|
||||
UUID uuid = luckPermsApi.getStorage().getUUID(playerName).join();
|
||||
UUID uuid = null;
|
||||
try {
|
||||
uuid = luckPermsApi.getStorage().getUUID(playerName).get(1, TimeUnit.SECONDS);
|
||||
} catch (InterruptedException | ExecutionException | TimeoutException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
if (uuid == null) {
|
||||
return null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user