Sueta
ID

IDLogger

1.2

API for accessing and storing player UUID and Names from MySQL or SQLite DB

·Plugin

Source code available above ^

This is an API that creates a table in a MySQL or SQLite database to log player UUIDs and Names, as configurable through the config.yml

Dependency for :
vShop Remastered <--Click Link

When using the plugin on a server:

Run the server once with the plugin installed to generate the config.yml

Edit the config.yml to connect to your MySQL database or to use SQLite.

Everything should work as normal. However, if you encounter any issues or have some feedback, let me know in the Discussion or send me a message!

To use the API:
Add the jar file to your build path.

Use the following line below to import:

import   me.arifBanai.idLogger.IDLogger   ;

Define the IDLogger instance as such:

IDLogger idLogger = (IDLogger) Bukkit.getPluginManager().getPlugin("IDLogger");

There are but two methods that should be used:

public String getNameByUUID(String playerUUID)
public String getUUIDByName(String playerName)

The UUID's and Names are stored as Strings and returned as Strings. If you want to convert a String playerUUID into an actual UUID, you should use

java.util.UUID.fromString(String UUID)

Similar projects

Plugin →