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.7K
    Downloads

More from _ForgeUser11741787View all

  • SuperHub project image

    SuperHub

    • 18.3K
    • Bukkit Plugins

    SuperHub, improve your hub, your mini-games and your server !

    • 18.3K
    • March 15, 2015
    • Bukkit Plugins
    • +1
  • ShipLocking project image

    ShipLocking

    • 2.6K
    • Bukkit Plugins

    You can now lock your ships (Movecraft) !

    • 2.6K
    • March 15, 2015
    • Bukkit Plugins
    • +3
  • CommandLimit project image

    CommandLimit

    • 576
    • Bukkit Plugins

    Limit your players at a number of uses per command

    • 576
    • October 27, 2014
    • Bukkit Plugins
  • SimpleBack project image

    SimpleBack

    • 2.0K
    • Bukkit Plugins

    A better /back command

    • 2.0K
    • October 25, 2014
    • Bukkit Plugins
    • +2
  • SuperHub project image

    SuperHub

    • 18.3K
    • Bukkit Plugins

    SuperHub, improve your hub, your mini-games and your server !

    • 18.3K
    • March 15, 2015
    • Bukkit Plugins
    • +1
  • ShipLocking project image

    ShipLocking

    • 2.6K
    • Bukkit Plugins

    You can now lock your ships (Movecraft) !

    • 2.6K
    • March 15, 2015
    • Bukkit Plugins
    • +3
  • CommandLimit project image

    CommandLimit

    • 576
    • Bukkit Plugins

    Limit your players at a number of uses per command

    • 576
    • October 27, 2014
    • Bukkit Plugins
  • SimpleBack project image

    SimpleBack

    • 2.0K
    • Bukkit Plugins

    A better /back command

    • 2.0K
    • October 25, 2014
    • Bukkit Plugins
    • +2