1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Solved PlayerSkinPacket on AddPlayerPacket

Discussion in 'Help' started by Pab45O, Oct 18, 2017.

  1. Pab45O

    Pab45O Spider Jockey

    Messages:
    37
    GitHub:
    Pab450
    Hello everyone,

    I have a NEWW problem, i want change the skin of a "fake player" (AddPlayerPacket) with "PlayerSkinPacket", I don't understand how it works, I have trying many things without success...

    PHP:
    $pk = new PlayerSkinPacket();

     
    $pk->uuid $uuid;
     
    $pk->skin = new Skin("Standard_Custom"/*? HELP ME HERE ?*/);

    $player->dataPacket($pk);
     
    Last edited: Oct 18, 2017
  2. Pab45O

    Pab45O Spider Jockey

    Messages:
    37
    GitHub:
    Pab450
    Problem is now fixed, i have just use a base64 encoding for the SkinData.

    PHP:
    $pk = new PlayerSkinPacket();

    $pk->uuid $uuid;
    $pk->skin = new Skin("Standard_Custom"base64_decode(/*SKIN ENCODE BASE64*/));

    $player->dataPacket($pk);
     
  3. LewBr

    LewBr Zombie

    Messages:
    385
    GitHub:
    lewbr
    What you set on Skin Encode? Can you get the skin encode of Offline player?
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.