USER
obtaining player data
public boolean userExist(UUID uuid)
{
if(Bukkit.getPluginManager().getPlugin("UltraBreeds") == null) return false;
User user = UltraBreeds.getInstance().getBreedsManager().getUserSearch InAllBreeds(uuid);
return user != null;
}
This method checks if the cached data exists for that player.
The most important thing is to obtain the player's class:
public User getUser(UUID uuid)
{
if(Bukkit.getPluginManager().getPlugin("UltraBreeds") == null) return false;
User user = UltraBreeds.getInstance().getBreedsManager().getUserSearchInAllBreeds(uuid);
return user;
}
The player data contains a lot of important information (stats, max stamina, current stamina, stamina, endurance, strength and stamina).
Last updated