UUID Changes
#11
Cracked login is working in 1.7.9.
Reply
Thanks given by:
#12
I added the GetUUID Method.
https://github.com/daniel0916/MCServer/c...4fec44607c

Should i move it in a other class? or is it so good?
Reply
Thanks given by:
#13
Is cPlayer not for an individual player, so having it on every player is strange?
Reply
Thanks given by:
#14
Oh i forgot this.
Okay maybe cServer::GetPlayerUUID or what do you think?
Reply
Thanks given by:
#15
Your change is silly, because it effectively duplicates most of the code in cAuthenticator.

Such a function would make sense to be static, so that it's not bound to a specific cPlayer instance, but it is still in the cPlayer class "namespace".
Reply
Thanks given by:
#16
Yes, the code is from cAuthenticator but with some changes for a POST request to the mojang api.

The GetUUID method is already static. Or what do you mean?
Reply
Thanks given by:
#17
Code should not be in two places at once.
Reply
Thanks given by:
#18
Didn't see the static declaration.

I'm not sure if this function is a good idea. It it blocking, so it can pause the calling thread for considerable amounts of time. So it cannot be used from plugins at all, and only very few MCS threads can afford the pause.
Reply
Thanks given by:
#19
How can i fix this?
The function is for plugins to get the UUID of a playername. So the plugin can convert her ban lists etc. and add the UUID's.
Reply
Thanks given by:
#20
I'd say the plugins that want to do this should implement the HTTP request / response handling by themselves; we should provide them with asynchronous (callback-based) sockets, SSL layer and perhaps HTTP client parsing.
Reply
Thanks given by:




Users browsing this thread: 8 Guest(s)