Bukkit Skin Plugin

Discussion in 'Plugin Development' started by Stav_Subach, Jun 19, 2016.

Thread Status:
Not open for further replies.
  1. Offline

    Stav_Subach

    Hello guys! I'm new to programming generally and also new to all this bukkit developing!

    I was looking recently in the net and what I wanted to find is a plugin that let you display player as he have different skin. I know I can't change his real skin but maybe I can do something so his skin changes only in the current server. Is it possible? I'm not sure but I believe it is... and let's say that the whole server see someone as his skin but he doesn't - that's fine too for me!
    But I want to make sure it will not steal another skin, it will take it from png url.
    Oh and, the werewolf plugin, for example - sets the skin of the player to werewolf while in werewolf form, maybe they have the answers.
    Devs and programmers - share your knoweldge!
    Please help me with that...
    Thanks for reading and sorry for my english :)
     
  2. Online

    timtower Administrator Moderator

    Moved to plugin development.
    @Stav_Subach Can only set it to the skins of existing players.
    Can't load it from an URL.
     
  3. Offline

    Stav_Subach

    Why is that? Why only URL? How did the werewolf plugin done it? 3 players that do not change their skin sounds a little hilarious...
    What about npc that copying perfectly the player? Maybe player that is invisible but it's npc is not? Maybe is that an option? Very intersting! I hope soon I will get more explaining answer... :D
    Anyway, thanks for responding timrower, I hope that there is still a way! :)
     
  4. Online

    timtower Administrator Moderator

    @Stav_Subach Sometimes they buy minecraft just for the skins. And sometimes players have steady skins.
    And it is the same for NPC's.
     
  5. Offline

    Stav_Subach

    Totally agree. But I just don't want people who choose demon race like dirt or just random skin, it's pretty annoying...
    My server has online mode true.

    I have bought minecraft aswell - Emperor_Daemonas , is my ign if you ask :D

    You are wrong by the way, it's not the same for npcs, in citizens for example - you can change your skin and save it in the server in a way that others see it and change back so people see the saved skin but you do not have to wear it which is amazing! :)
     
  6. Online

    timtower Administrator Moderator

    @Stav_Subach Then you need to find players with a demon skin somewhere.
     
  7. Offline

    Stav_Subach

    Luckly I do not, I created my own png file for that.

    If there's a client, he joins the server. How do he see other's skin? The server let him do this - because it is a fact that if we choose online mode = false , you will see no skins on players. Including yourself! So maybe it's possible to control the skin url through the server itself!
    So why not doing that? If anyone can help me, please do!
    And thanks again for reading this.
     
  8. Online

    timtower Administrator Moderator

    @Stav_Subach It goes by UUID's.
    Server tells who has what UUID.
    Client looks up the skin for that UUID.
    Offline mode has no UUID's that are real players so that is why you don't have skins.

    We can change the UUID that is being send, but not the skin.
     
  9. Offline

    Stav_Subach

    What a twist!

    So how I do that? How I change the uuid that is being sent? Please tell me this if you can, I would appretiate that :D.

    I do not need offline mode anyway...
     
  10. Online

    timtower Administrator Moderator

    It is not supported anyway...
    http://dev.bukkit.org/bukkit-plugins/disguisecraft/
     
  11. Offline

    Stav_Subach

    I think you got me wrong, my server is not pirated. It's for bought accounts! :confused:

    I *think* that theres a way to convert URL to UUID :D
    so maybe if I do that I can use png urls.
     
  12. Online

    timtower Administrator Moderator

    @Stav_Subach An UUID is a player identifier. Not an image.
     
  13. Offline

    Stav_Subach

    Maybe it's possible to fake this indentifier :confused:
     
  14. Online

    timtower Administrator Moderator

    @Stav_Subach Faking the identifier is relative easy.
    But that still doesn't provide a way to load a skin from an url.
     
  15. Offline

    Stav_Subach

    Can you explain to me why? It's intersting for me because maybe there IS way to do it through URL...
     
  16. Online

    timtower Administrator Moderator

    Because skins are handled by the client, not by the server.
     
  17. Offline

    I Al Istannen

    @Stav_Subach @timtower
    The closest you can come is player heads. Once you could provide any png file as the head texture, but since that introduces security risks, mojang fixed it. Now the texture has to be signed by mojang, if I remember that right.
    For skins, your client fetches them from the Mojang servers, based on the UUID it got. This means, you can only show skins where a valid UUID exists for.

    Wynncraft has or had a feature, where your skin was changed. This was done by having multiple accounts whose skins were changed.
     
    Last edited: Jun 19, 2016
  18. Offline

    MisterErwin

    In addition to what tim said, skins and capes are signed/decoded by mojang.
    (Have a look at wiki.vg)

    Skulls/Heads do not require a signed skin to show :)

    What you could do (like I Al Istannen mentioned) fetch a skin (and store it) and use that skin :)
     
  19. Offline

    Stav_Subach

    Thanks misterErwin! You are right that's a good idea! :D

    I looked good at the link you gave me MisterErwin.

    I don't want to pay to mojang for it's api, though I do want to "fetch a skin" and "store" it somehow but I have no idea how. Is there way without mojang API? Im new to these stuff so don't blame me please.
     
    Last edited: Jun 19, 2016
  20. Offline

    Stav_Subach

    Can someone explain? I still do not understand.
     
  21. Online

    timtower Administrator Moderator

    @Stav_Subach 1. You don't need to pay for the mojang API as far as I know.
     
  22. Offline

    I Al Istannen

    @timtower @Stav_Subach
    You don't. I just recently wrote a small UUID lookup program which used their API.
    But there is a limit of 600 requests per 10 minutes. Not that harsh, considering they provide it for free.
     
  23. Offline

    MisterErwin

    @Stav_Subach Always tagh people (with the @) so we can respond.

    On the wiki.vg page are some skin fetcher examples (and even more are on here)
     
  24. Offline

    Stav_Subach

    @MisterErwin
    Will do.

    Very well, i'll check them!

    EDIT:
    Guys! I done the plugin! Thanks for everyone who answered and spoke! Thanks especially to MisterErwin.
     
    Last edited: Jun 26, 2016
Thread Status:
Not open for further replies.

Share This Page