uuidAPI
Quick Description
uuidAPI's job is to collect information about a users' UUID who join your server while this plugin is installed and have that information ready for other plugins to use when needed. This API will not automatically work with your plugin, but it is easy to implement and will save you time by managing UUID's and the names tied to them for you. Mojang already has an API to accomplish this, but if you are looking for an easier/different method, uuidAPI is something you should try out.
How will this API help my plugin?
Most, if not all plugins that deal with player configs or the players themselves, have used player displaynames as way to identify one user from many others. It is much easier to remember a player's username compared to their UUID, but what do you do when there is a need for identifying a player who is offline, but you only remember their username? uuidAPI's job is to gather all the information for you so you can retrieve UUID's of a player by their last used display name and it will automatically keep it updated for you.
I'm interested in uuidAPI.. How can I implement it in my plugin?
How you use this API is up to you, but it is very easy to implement in your plugin. A server must have the uuidAPI.jar in their server plugins folder (it must be up to date and working correctly as well) if your plugin uses this API. If you want to implement this API into your plugin, please follow the guide below
Features
- SQLlite database used for efficient data storage and retrieval
- Optional MySQL database connect
- Lightweight: the only work uuidAPI does on its own is when a player logs in and an occasional database connection check
- Keeps track of past names, instead of just the one currently attached to it
- More 'suited' for frequent requests since no extra outbound connections need to be made (unless you're using a MySQL server)
- Database updates are handled in an async thread, while up-to-date information is stored in a local cache for fast responses
Implementing uuidAPI into your plugin
Click Here for implementation guide
@DevinderFTW
This plugin serves as an alternative to pinging Mojang's servers to get a player's UUID. Many plugins (like Esssentials) do this within their plugins.
The main purpose of this plugin is to have player's UUIDs ready, even when they are not online. It is just a developer tool.
I don't get it... What do this does? If online-mode=false will people get to see each other's skins or what? Sorry.
@2008Choco
Thanks for the comment! I do need another tester, so if you find any bugs/problems, please let me know!
I'm not using this myself, however, it seems pretty useful. Personally, I prefer to write all my code using as little API's as possible, but I would consider using this. Good job :) Keep up the great work
I was planning on creating something like this. You beat me to it :P