Initializes the user cache synchronously
()
| 60 | * Initializes the user cache synchronously |
| 61 | */ |
| 62 | public static void init() { |
| 63 | asyncInit(); |
| 64 | if (!initTask.isDone()) { |
| 65 | try { |
| 66 | initTask.get(); |
| 67 | } catch (InterruptedException | ExecutionException e) { |
| 68 | e.printStackTrace(); |
| 69 | } |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | /** |
| 74 | * Gets an OfflinePlayer by name, initializing the cache synchronously if it has not been initialized yet |
no test coverage detected