promotional bannermobile promotional banner

UUIDSolver API

An assistant for migrating to UUID or to online-mode.

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;
}

The UUIDSolver API Team

profile avatar
  • 1
    Followers
  • 7
    Projects
  • 24.9K
    Downloads

More from _ForgeUser11741787View all