CmlLib / MojangAPI

MojangAPI
16 stars 6 forks source link

Player Attributes API not working with this library #3

Closed EvanEvan-17 closed 1 year ago

EvanEvan-17 commented 1 year ago

Hello, I've trying to get Player Attributes with this library, but it is not working, it says 401: Unauthorized. It looks like the correct endpoint is not /players/attributes but /player/attributes. I've also trying to call it directly with RestSharp and deserialize the result to the Player Attributes model that is on this library, but it is also not working. Actually I use that API to get player's Xbox Privacy Settings if it not applied automatically. I also have some question:

Does the user Xbox Privacy Settings automatically applied on my launcher without any additional coding? If yes, then this issue will be solved for now.

I've a screenshot for this

Mojang API Player Attributes error

.

AlphaBs commented 1 year ago

okay thank you for reporting.

There were cases where some users failed to log in with an error 'Not authenticated with Minecraft.net' when connecting to the online-mode server. I found that multiplayer was disabled in the user's xbox privacy settings.

So at least disabling multiplay in xbox privacy setting seems to work without any coding on the launcher.

EvanEvan-17 commented 1 year ago

Can you fix it? Does it also disable chat in Minecraft when the user's Xbox Privacy Settings doesn't allow chat?

AlphaBs commented 1 year ago

fixed on 1.2.1

EvanEvan-17 commented 1 year ago

This has been fixed. Thank you.