Skins Restorer plugin
#5
(04-19-2021, 12:06 AM)HeCorr Wrote:
(04-18-2021, 01:43 PM)12xx12 Wrote: I think in the end it comes down to those lines

Yes, on the Skin Restorer's side. I meant how the skin is updated in Cuberite.

I actually looked around Cuberite's code a bit more and it seems to come down to here, but I'm not 100% sure if you can just set that value to any already-joined cPlayer.

I would have to (and might later, just for curiosity's sake) print the a_Properties variable to see how the skin data is structured.  Smile

Keep in mind that Skins Restorer also does some trickery to actually refresh the player's skin for other players, which seems to be quickly making them invisible and then visible again but I'm not sure if that's all that is needed to make it work.

Also I'm not sure what this does, and if it's needed at all (I'm guessing it is).

You're right.
We might have to reveal the m_Properties property of client handle to the API or add a c-function which takes a string of the json object and replaces the actual values. Something like:

Code:
cClientHandle::SetSkin(AString & a_SkinJson)
Reply
Thanks given by:


Messages In This Thread
Skins Restorer plugin - by NightVoid - 04-18-2021, 05:12 AM
RE: Skins Restorer plugin - by HeCorr - 04-18-2021, 08:20 AM
RE: Skins Restorer plugin - by 12xx12 - 04-18-2021, 01:43 PM
RE: Skins Restorer plugin - by HeCorr - 04-19-2021, 12:06 AM
RE: Skins Restorer plugin - by 12xx12 - 04-19-2021, 12:33 AM
RE: Skins Restorer plugin - by HeCorr - 04-19-2021, 01:43 AM



Users browsing this thread: 1 Guest(s)