I made a GUI with custom heads using nicks to have texture, everything was working a few hours ago, but now no more texture loads, from any menu. Spoiler Spoiler
You or your server probably hit a rate limit with mojang for loading skins (x requests per y time period)
The problem is not the code, I just create an ItemStack using a player's nickname, and until a while ago it was working, and without me changing anything it stopped loading the texture.
Yes, this is the method I use to create custom heads: Code (Text): public static ItemStack newHead(String name, String owner, int amount, String... lore) { ItemStack item = new ItemStack(Material.SKULL_ITEM, amount, (short) SkullType.PLAYER.ordinal()); SkullMeta meta = (SkullMeta) item.getItemMeta(); meta.setOwner(owner); meta.setDisplayName(name); meta.setLore(Arrays.asList(lore)); item.setItemMeta(meta); return item; }
What's the server version, and is there any related issues you've experienced, such as missing player skins?
The server is hosted on my machine at version 1.8.8, and regarding the players' skins I didn't see any problems.
Double check where you use the function is creating the skull properly, and try printing what the function returns in a console log EDIT: If what I'm seeing on my server is the same issue, they've done something with skins during the 1.16 updates, I can't seem to get skins working on a 1.8 server, but they work fine on a 1.16 server on the same machine