Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to use setSkin() ?

Comments in 'Plugin Development' started by korado531m7, Dec 25, 2015.

  1. korado531m7
    Offline

    korado531m7 Active Member

    Joined:
    Apr 4, 2015
    Posts:
    158
    Minecraft User:
    korado531m7
    hi. There is a code that I don't know how to use.
    It is "setSkin".

    PHP:
    setSkin($strfalse);
    How do I input skin data in $str?

    I extracted skin data, but I couldn't save as text.
    (used getSkinData(); )

    Please tell me.
    Thank you for reading my thread and answering.
  2. Nawaf_Craft1b
    Offline

    Nawaf_Craft1b Active Member Plugin Developer

    Joined:
    May 8, 2015
    Posts:
    232
    Plugins:
    1
    Minecraft User:
    Nawaf_Craft1b
    PHP:
    $player->setSkin($this->getServer()->getDataPath() ."Skin/".$skin);
    i think this code
    I'm not sure because I did not use code
    Last edited: Dec 26, 2015
  3. Intyre
    Offline

    Intyre Staff Member PocketMine Team

    Joined:
    Aug 24, 2013
    Posts:
    118
    Minecraft User:
    Intyre
  4. AndrewBit
    Offline

    AndrewBit Notable Member

    Joined:
    Jun 18, 2015
    Posts:
    435
    Minecraft User:
    AndrewBit4
    PHP:
    setSkin($this->getServer()->getDataPath() . "skin/" "skin.png""skin")
  5. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    @AndrewBit wrong. It accepts the rgb binary like text, not a file.
  6. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Please don't post if you have no evidence behind that.
    Who told you it is a file... It isn't even related to PNG...
    RGBA, not RGB.
    Gamecrafter and Legoboy0215 like this.
  7. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    RGBA... OK. What does it stand for???
  8. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    RGB + alpha, although it is usually \0
    Gamecrafter and Legoboy0215 like this.
  9. Nawaf_Craft1b
    Offline

    Nawaf_Craft1b Active Member Plugin Developer

    Joined:
    May 8, 2015
    Posts:
    232
    Plugins:
    1
    Minecraft User:
    Nawaf_Craft1b
    okey
  10. korado531m7
    Offline

    korado531m7 Active Member

    Joined:
    Apr 4, 2015
    Posts:
    158
    Minecraft User:
    korado531m7
    I tested, but it doesn't work...

Share This Page

Advertisement