Prevent another deadlock in LuckPermsHandler #1350

This commit is contained in:
Gabriele C 2017-10-09 09:05:09 +02:00
parent 45dda0deba
commit fafbef6be7

View File

@ -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;
}