ModsJava
PlayerUUIDCache
Java mod listed for Minecraft 1.12–1.14. Downloads from the MC Java Mods app on Android.
⬇ Download on SpigotThis 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:
In the dependencies section:
Now you can use it in your plugin like this:
Add a dependency in the plugin.yml:
Get the reference in the code:
Use the reference (example):
For the complete API
have a look here.
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>
<id>brokko-repo</id>
<url>https://www.iani.de/nexus/content/groups/public</url>
</repository>
Code (Text):
<dependency>
<groupId>de.iani.cubeside</groupId>
<artifactId>PlayerUUIDCache</artifactId>
<version>1.5.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<groupId>de.iani.cubeside</groupId>
<artifactId>PlayerUUIDCache</artifactId>
<version>1.5.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
Add a dependency in the plugin.yml:
Code (Text):
depend: [PlayerUUIDCache]
Code (Text):
private PlayerUUIDCacheAPI playerUuidCache;
public void onEnable() {
playerUuidCache = getServer().getServicesManager().load(PlayerUUIDCacheAPI.class);
[...]
}
public void onEnable() {
playerUuidCache = getServer().getServicesManager().load(PlayerUUIDCacheAPI.class);
[...]
}
Code (Text):
CachedPlayer cachedPlayer = playerUuidCache.getPlayerFromNameOrUUID(name);
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.12, 1.13, 1.14
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
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.