Change a players skin

Discussion in 'Plugin Development' started by snickers10m, Aug 3, 2012.

  1. Offline

    snickers10m

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I'm working on a TF2 plugin for people who've requested it but don't want to use mods, just vanilla. The weapons should be easy and with 1.3 bukkit coming, texturing them is simple as well. I am just stuck on changing the skin that other players see the player as. I want a visual indication of if they're a red engineer, blue sniper, etc. Anyone know how to do this? I'm pretty sure the server sends the skins to the player, so I think it's possible.

    Thanks, in advance, for your responses!
  2. Offline

    travja

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    It would be impossible to do without actually changing their name as their skin comes from their name. Otherwise you would probably need Spout.
  3. Offline

    snickers10m

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Changing their name shouldn't be a problem as displayname and name are two different variables... but then you'd need 18 minecraft accounts for the skins... blah.
  4. Offline

    r0306

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @snickers10m
    That shouldn't be a problem if you set up methods to do this. :) All you would have to do is loop through for all players on the server.

    This post has been edited 1 time. It was last edited by r0306 Aug 3, 2012.
  5. Offline

    snickers10m

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    but you can't load the skins from a file? It is forced to take them from minecraft.net?
  6. Offline

    travja

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    exactly..... So therefore you would need multiple minecraft accounts with your custom skins.
  7. Offline

    snickers10m

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    raaaaaage. alright. Thanks for your responses, anyways.
  8. Offline

    bobacadodl

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    It IS possible to change the color of a player's name tag. Probably not what you need though.

Share This Page