mojang / accountsclient Goto Github PK
View Code? Open in Web Editor NEWJava client for accessing Mojang's account/profile API
Java client for accessing Mojang's account/profile API
There are some Twitch channels like GeekAndSundry that have Twitch sub only Minecraft servers. It would be nice to be able to query the Twitch profile name of users who join the server (if linked). This gives admins or some kind of automation the information needed to verify if the new player is one of their Twitch subscribers.
(Documentation moved to the wiki)
I am currently working on a ban-lookup library for minecraft that I am publishing under the Apache 2 license.
As it stands right now, AccountsClient has no published artifacts, meaning I have to include it in my artifact or submit it as a 3rd-party artifact - both paths concern me in terms of legality.
I would really appreciate it if mojang could apply some manner of OSS license to the project.
I'm looking at using this library for UUID conversions in one of my mavenized projects, and it'd be way easier if this library were available in an existing maven repository (preferably Central for convenience).
Getting the UUID for player u
returns user ü
:
{
"profiles": [
{
"id": "c6893ba47cfd4002abea33d4b1bd3f7a",
"name": "ü",
"legacy": true
}
],
"size": 1
}
Did you allow umlauts in usernames some time ago, or is that an error?
Currently the API don't return a result for unpaid accounts. It would be nice to still get the result, but an additional field with the current paid status.
The problem is that are users registered to my server, that had once a paid account. Later Mojang marked the payment as invalid. If these users use another gift code, they'll have a paid account again and could join my server.
If in the future it will be possible to change usernames, there is no way to track if the users with an empty ID are the same users.
So it should be possible to get the IDs of the unpaid accounts, too. Those IDs are bound to the account and doesn't change with the current payment status.
AccountsClient returns no result for several players. About 50 of 36000.
Some example user names:
Pups1924
derJonas1304
TheFlo2001
flash3838
Plarun
zxZDerShaenZxz
koffermodus
LPXerios
TheCheater1998
ReyTronix
CrafterRamon2000
FCAugsburgs
Accounts from minecraft.net return no results while Mojang.com accounts work fine.
Why does every user need an agent? This is way more data than required.
Instead of
[
{"name":"jeb_", "agent": "minecraft"},
{"name":"Dinnerbone", "agent":"minecraft"}
]
it would be much better (saving badwith and time) to use:
[
{
"agent": "minecraft",
"names": ["jeb_", "Dinnerbone"]
}
]
It would still be possible to get usernames for different agents (Scrolls?) in the same request although I can hardly imagine a case where that would happen.
I made a quick test with 50 users and the payload went from 2401 bytes to 938 (!)
The normal payload is more than 2.5 x the size.
Support for this doesn't break the current system, so there's only pros and no cons. :)
Hi
So currently we can convert a Username -> UUID but as far as I'm aware you can't convert UUID -> Username. This feature is very much needed. Thanks Mojang for all your work so far!
Whilst the API is just for retrieving account UUIDs can you please allow cross origin requests from browsers:
Thanks,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.