Home›Java›Mods›PlayerUUIDCache
PlayerUUIDCache
ModsJava

PlayerUUIDCache

Java mod listed for Minecraft 1.12–1.14. Downloads from the MC Java Mods app on Android.

⬇ Download on Spigot
This plugin provides an API to quickly resolve player names to UUIDs and vice versa. It uses an in memory cache as first level and a second level file or MySQL cache. For entries not found in the cache Mojang can be queried. All querys can be done asynchronously to avoid a negative performance impact.

If you have a network of multiple servers you can use the same MySQL database for all instances so cached results are shared.

This API is only useful if you have plugins using it on your server. There is no reason to have it on the server when no plugin uses it.

Development Builds

You can download development builds from our Jenkins server

Using this API your plugins

To add this API as a maven dependency, add the following to your pom.xml:

In the repositorys section:
Code (Text):
       <repository>
           <id>brokko-repo</id>
           <url>https://www.iani.de/nexus/content/groups/public</url>
       </repository>
In the dependencies section:
Code (Text):
       <dependency>
           <groupId>de.iani.cubeside</groupId>
           <artifactId>PlayerUUIDCache</artifactId>
           <version>1.5.1-SNAPSHOT</version>
           <scope>provided</scope>
       </dependency>
Now you can use it in your plugin like this:

Add a dependency in the plugin.yml:
Code (Text):
   depend: [PlayerUUIDCache]
Get the reference in the code:
Code (Text):
   private PlayerUUIDCacheAPI playerUuidCache;
   public void onEnable() {
       playerUuidCache = getServer().getServicesManager().load(PlayerUUIDCacheAPI.class);
       [...]
   }
Use the reference (example):
Code (Text):
   CachedPlayer cachedPlayer = playerUuidCache.getPlayerFromNameOrUUID(name);
For the complete API have a look here.

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

PlayerUUIDCache is a free Minecraft Java mod. Compatible with Minecraft 1.12, 1.13, 1.14. Downloaded 181 times (via Spigot). Download it and open it directly in the game.

Explore more