Interface UserManager


public interface UserManager
  • Method Summary

    Modifier and Type
    Method
    Description
    getUser(UUID playerId)
    Gets an online player's user data from the player's UUID.
  • Method Details

    • getUser

      SkillsUser getUser(UUID playerId)
      Gets an online player's user data from the player's UUID. Since only online players are loaded in memory, calling this method with an offline player's UUID will return an empty SkillsUser object that returns default values for get methods and cannot be updated. If you don't know whether the uuid is an online player, use SkillsUser.isLoaded() to check if the returned user is loaded.
      Parameters:
      playerId - the UUID of the player
      Returns:
      the SkillsUser object