use of com.iridium.iridiumskyblock.api.IridiumSkyblockAPI in project CombatLogX by SirBlobman.
the class ListenerIridiumSkyblock method getIsland.
private Island getIsland(Player player) {
if (player == null)
return null;
IridiumSkyblockAPI api = IridiumSkyblockAPI.getInstance();
User user = api.getUser(player);
Optional<Island> optionalIsland = user.getIsland();
return optionalIsland.orElse(null);
}
Aggregations