java.lang.Object
me.lucko.luckperms.common.storage.implementation.file.FileUuidCache

public class FileUuidCache extends Object
  • Constructor Details

    • FileUuidCache

      public FileUuidCache()
  • Method Details

    • addMapping

      public net.luckperms.api.model.PlayerSaveResult addMapping(UUID uuid, String username)
      Adds a mapping to the cache
      Parameters:
      uuid - the uuid of the player
      username - the username of the player
    • removeMapping

      public void removeMapping(UUID uuid)
      Removes a mapping from the cache
      Parameters:
      uuid - the uuid of the player to remove
    • lookupUuid

      public @Nullable UUID lookupUuid(String username)
      Gets the most recent uuid which connected with the given username, or null
      Parameters:
      username - the username to lookup with
      Returns:
      a uuid, or null
    • lookupUsername

      public String lookupUsername(UUID uuid)
      Gets the most recent username used by a given uuid
      Parameters:
      uuid - the uuid to lookup with
      Returns:
      a username, or null
    • load

      public void load(Path file)
    • save

      public void save(Path file)