IdentifierAPI
IdentifierAPI
Outdated:
- You may now retrieve the UUIDs via the Bukkit API
What it Does:
- Given a player's Minecraft username it returns their Mojang Account UUID
Why is this Useful:
- Minecraft usernames will changeable soon
- Make your plugin future proof
How to use this API:
- Please do not include this code in your own plugin but implement this API instead
- Users of your plugin should put this plugin in their plugins folder
- Checkout Bukkit Resource Thread
In your plugin's main class:
public static IdentifierAPI identifier; public void onEnable() { hookIdentifierAPI(); } private void hookIdentifierAPI() { PluginManager pm = getServer().getPluginManager(); if(pm.getPlugin("IdentifierAPI") instanceof IdentifierAPI) { identifier = (IdentifierAPI) pm.getPlugin("IdentifierAPI"); } }
To get a Player's Mojang UUID:
identifier.getPlayerUUID("EDawg878")
Source:
https://github.com/EDawg878/IdentifierAPI
Credit:
- @forairan https://github.com/forairan/ConvertUUID
@EDawg878 May i take over this project if it is abandoned?
@Vincent1468 Currently you can only fetch a uuid from a username... This is due to the fact that the payload being sent to the profiles API is something like this...
@iKeirNez Ever since Dinnerbone announced 1.8 will have name changing i have been looking to find out how to get username from an id, i have not found out how yet. But i am still looking!
@Vincent1468
I am looking for the same feature
@fuzzybotmccore
I can't wait, keep us updated!
Is it possible to get a name back from an UUID?
I'm going to modify this to add these features and submit a pull request later:
@Adrenalineq
Soon players will be able to change their Minecraft usernames. With this API you can fetch the player's Mojang Account UUID so that you can begin updating your plugin to move away from usernames and towards UUIDs. For example you could start to update a player database, make a banning uuid plugin etc.
This UUID help me with what? With checking if player have premium launcher ? example ? :d make any description what is it :)
@Rmarmorstein
Uploaded: https://github.com/EDawg878/IdentifierAPI
Will this be on github?