Minecraft UUIDSolver API mod 2026 download
logo
minecraft mod UUIDSolver API

UUIDSolver API

Game Version: 1.8.1
Total Downloads: 306
Updated: Dec 20, 2014
Created: Dec 20, 2014
Download UUIDSolver APIDownload Earlier Versions

Earlier Versions

Name Size Uploaded Game Version Downloads
UUIDSolver v0.1 release 3.24 KB Dec 20, 2014 1.8.1 306 download UUIDSolver API UUIDSolver v0.1 releaseDownload

Description

Share this:

UUIDSolver API

Features

  • Find a player by UUID
  • Find the online UUID of a player (for online-mode servers)
  • Find the offline UUID of a player (for offline-mode servers)

Command

The main command is: /uuidsolver

The subcommands are:

  • "player" to find a player from an UUID
  • "offlineuuid" to find an offline UUID from a player
  • "onlineuuid" to find an online UUID from a player

API

public OfflinePlayer getPlayer(String uuid){
	return Bukkit.getOfflinePlayer(UUID.fromString(uuid));
}
	
public UUID getOfflineUUID(String player){
	return UUID.nameUUIDFromBytes(player.getBytes());
}
	
public UUID getOnlineUUID(String player){
	UUID uuid = null;
	for(OfflinePlayer offlineplayer:Bukkit.getOfflinePlayers()){
		if(offlineplayer.getName() == player){
			uuid = offlineplayer.getUniqueId();
		}
	} for(Player onlineplayer:Bukkit.getOnlinePlayers()){
		if(onlineplayer.getName() == player){
			uuid = onlineplayer.getUniqueId();
		}
	} return uuid;
}

Comments

Add a comment