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
-
View User Profile
-
Send Message
Posted Mar 6, 2014@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!
-
View User Profile
-
Send Message
Posted Nov 3, 2013@Vincent1468
I am looking for the same feature
-
View User Profile
-
Send Message
Posted Nov 3, 2013@fuzzybotmccore
I can't wait, keep us updated!
-
View User Profile
-
Send Message
Posted Oct 29, 2013Is it possible to get a name back from an UUID?
-
View User Profile
-
Send Message
Posted Oct 28, 2013I'm going to modify this to add these features and submit a pull request later:
-
View User Profile
-
Send Message
Posted Oct 27, 2013@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.
-
View User Profile
-
Send Message
Posted Oct 27, 2013This UUID help me with what? With checking if player have premium launcher ? example ? :d make any description what is it :)
-
View User Profile
-
Send Message
Posted Oct 26, 2013@Rmarmorstein
Uploaded: https://github.com/EDawg878/IdentifierAPI
-
View User Profile
-
Send Message
Posted Oct 26, 2013Will this be on github?