Change Skin [HELP]

Discussion in 'Spigot Plugin Development' started by MarcusNerloe, May 28, 2017.

  1. I am trying to make a plugin, that will replace your skin, with another players skin. The skin has to be changed for both the local player, and other players. How do i do that?

    I can show an example, from Hypixels /nick and /unnick.
    HERE is a clip, that shows what i mean. ;)

    I hope you can help, thanks in advance! :)
  2. we won't spoonfeed with your with code, what have you tried so far?

    If nothing, here's an speudo example:

    info packet remove player -> players ( also yourself )
    info packet add player -> players ( also yourself )
    -> named packet -> players ( also yourself )
    -> maybe teleport yourself to a different world & back if it didn't apply your skin.
  3. Thanks, for helping. :)
    I've tried a couple of vidoes, and done a lot of searching here on Spigot. :)

    How does the packet thing really work, I haven't put myself into it.
    Can you give an example? :D
  4. The packet is called PacketPlayOutPlayerInfo just search it on Google or the spigot javadocs for more information, its basically a part of your tablist.
    The PacketPlayOutNamedEntitySpawn is a part of creating your new "entity"
  5. Thanks m8! :)

    Is it like this?
    PacketPlayOutPlayerInfo packet = PacketPlayOutPlayerInfo.removePlayer(((CraftPlayer)p).getHandle());