Hi, I tried numerous times to get texture from a link, and it just doesn't work, it always returns the default texture (Steve)
this is my code rn: (Kotlin but very similar to Java)
var profile = Bukkit.getOfflinePlayer(UUID.randomUUID()).playerProfile
val textures = profile.textures
textures.skin = URL(link)
profile.setTextures(textures)
val skull = ItemStack(Material.PLAYER_HEAD)
val meta = skull.itemMeta as SkullMeta
meta.ownerProfile = profile
skull.itemMeta = meta
return skull!!
link is always a textures.minecraft.net / ... link which resolves to real textures (for example, this one http://textures.minecraft.net/texture/3d8af980ff608867b6bc3736111c4c01b41f1ff6899a21e59858bce3d44dcf86)