Hi, how to turn off or change these heads? https://www.spigotmc.org/attachments/sameserver-png.15946/
@drafix To change it, i think you would have to change the skin of the player (or NPC), you can do that by editing their GameProfile, this requires you to get the player (or NPC) used.
@drafix You can get a player's GameProfile by using EntityPlayer#getProfile() This is using NMS of course. Let me know if you don't know what NMS is.
I still do not know how to do it I want to change the heads themselves for the logo, because they are all over TAB, and I do not want them.
@drafix Read this: https://bukkit.org/threads/info-packets-nms-explained.177955/ It explains how you can use NMS.
@drafix What exactly don't you understand about it? To get the GameProfile you need to use EntityPlayer#getProfile(), and to get the EntityPlayer you need to get the CraftPlayer and use CraftPlayer#getHandle(). Let me know if you've got the GameProfile, then i'll move on to how you can edit the skin. Tip: CraftPlayer implements Player.
CraftPlayer cp = (CraftPlayer) p; EntityPlayer ep = cp.getHandle(); GameProfile gp = ep.getProfile(); well? @KarimAKL
@drafix Good, now you can get the textures of a player by getting the PropertyMap (getProperties) from the profile and then get 'textures'. Set the textures the same way. You can get the player you want a skin from, get their profile, get their textures and then set your player (NPC)'s textures to that.
PropertyMap pm = gp.getProperties(); I have these PropertyMap, but how do you set these textures and so on?
@drafix Something like this should work: Code:Java gp.getProperties().put("textures", yourPlayer.getProfile().getProperties().get("textures"));
@drafix 1. You are setting the player's skin, not the NPC's skin. 2. I don't know, do you create the NPCs yourself? If not, then maybe you can get them from WorldServer#players (WorldServer is the NMS version of World from Bukkit)