Solved GameProfile PropertyMap Values

Discussion in 'Spigot Plugin Development' started by Stef, Jul 1, 2016.

  1. I was experimenting with the different things we can change in a gameprofile's propertymap. So I got my GameProfile and looked around for a list of different things that can be in the propertymap (I know you can add anything, it's more about what is used by the server/client). I couldn;t find a list of this, so I checked which values were already in the propertymap. Sadly nothing was stored in there. Is their some sort of list of things which can be stored in there and are used by the server/client?
     
  2. If your server is in online mode it surely stores information. If you check the GameProfile of a connected player you would find stuff about textures.
     
  3. I recently was playing around with it. Here is what I could find in a legit GameProfile:
    Code (Text):
    [17:25:26] [Server thread/INFO]: [MMOCore] Key is textures
    [17:25:26] [Server thread/INFO]: [MMOCore] Values are:
    [17:25:26] [Server thread/INFO]: [MMOCore]   Property 1:
    [17:25:26] [Server thread/INFO]: [MMOCore] Name: textures
    [17:25:26] [Server thread/INFO]: [MMOCore] Value: eyJ0aW1lc3RhbXAiOjE0NjY5NTQ3Mjc0OTcsInByb2ZpbGVJZCI6IjA5NDZlZjAyNTBmZDQzZmJhNzIzYmYwODIzY2UwN2JmIiwicHJvZmlsZU5hbWUiOiJBcmVrdG9yIiwidGV4dHVyZXMiOnsiU0tJTiI6eyJ1cmwiOiJodHRwOi8vdGV4dHVyZXMubWluZWNyYWZ0Lm5ldC90ZXh0dXJlLzQ2ZWEzMzg3NGY4NWU1NjZlNGE0NzljNmJmYjk5OTA2NDU5OTVkNTRlODU2M2JmYmViY2FkNjZmNjZmYzE1In19fQ==
    [17:25:26] [Server thread/INFO]: [MMOCore] Decoded value: {"timestamp":1466954727497,"profileId":"0946ef0250fd43fba723bf0823ce07bf","profileName":"Arektor","textures":{"SKIN":{"url":"http://textures.minecraft.net/texture/46ea33874f85e566e4a479c6bfb9990645995d54e8563bfbebcad66f66fc15"}}}
    [17:25:26] [Server thread/INFO]: [MMOCore] Signature: uvRk7ULL7FwHcngFj6tA4w5syyk8HPNBmSIqa+Hax4GHX3trSKOB88mrerxISbAR79PJzqTNm/CshKDVHPFLQ5htUtIKqszWX6ArtTv/nLEfT+Mtdz1nasJkZZ/6plzAuoArk/kgmkLAij9F7A3f3yfrJiX1/qanFAzT59XYxqrKkGOsoUR7yTj4K/gXhcGlDZtVfQH3Q6XKzUOg3yfe58ozstxXbtxOFpUaKh/QqYDfsrdVs6zPX1lqvhEmGbIuQ+7i55+YQFHhKxCPnroqwhnaelTN/xiSZR+Y1Wt4Br66jQl+wzQ1CHqqHJyRE9Vc8aqAViVPY2IToBMgYWQ9PfY10NvxDm+Bj+1FXVDXyZgWHdf9Ww82AIzzvjkaKlExL9Z+WXQjWzHKEmm11TGcWdzR79cgLVHdWYlZV08B6JkF5t2wlFxsVs3XlYzKwzEpabCBXCb6r/UeL9xLnEc/EqRtBxeo+HN+wP8188zySA3pjoqOmuH+URbdmYOS7pUqvQccPngi4NvBpQYw05qWKbbYsPgS6xYfoEDuVxmzyHdnjDHb4BYAAdlzhOyO2KkXIXOXDO5Ehm1wgTB0sKsTmwCYurlNRcoRbVyilCkMQKICmRKNc5GFwVMBHab8j6nMNtZDXcGssby4dKBiieZFifnZr0XIaUOrLUweceo7a8c=
    In the map, you only have one key, which is "textures"
    The value is a Property object.
    The name of this Property was "textures", his value was encoded in Base64 (decoded version below it) and it also has to be signed.

    timestamp is the date (as a long object) of when the player logged in
    profileId is the trimmed player UUID.
     
  4. Well the online mode was the problem.
    I see, I hoped that there was more information stored in the propertymap, but apparently not.