1.12.2 Get Player name from texture skin

Discussion in 'Spigot Plugin Development' started by pigeonmal, Mar 31, 2020.

  1. Hello,
    How I could get the name of the player who has a skin. Example:
    / skin Notch.
    I got the textures of the notch skin, how I know it is the notch skin. How to make Texture -> Player name.

    Code (Text):
        Collection<Property> props = skingp.getProperties().get("textures");

    //skingp = GameProfile of notch (example from above)
     
  2. Choco

    Moderator

    Texture data contains no information about a player. What are you trying to do?
     
  3. I'm trying to make a mini game that is functional for now, and I want to add skins to it. I know how to put a skin on a person, if I want to put back their old skin, I have to look at the textures of the skin before I put the new one and put it in a hashmap. There's no way to get the name of a player skin.