Class NicknameCache

java.lang.Object
com.djrapitops.plan.gathering.cache.NicknameCache
All Implemented Interfaces:
SubSystem

@Singleton public class NicknameCache extends Object implements SubSystem
Used for caching nicknames when the player is online.
  • Constructor Details

  • Method Details

    • enable

      public void enable()
      Description copied from interface: SubSystem
      Performs enable actions for the subsystem.
      Specified by:
      enable in interface SubSystem
    • disable

      public void disable()
      Description copied from interface: SubSystem
      Performs disable actions for the subsystem
      Specified by:
      disable in interface SubSystem
    • removeDisplayName

      public void removeDisplayName(UUID uuid)
    • getDisplayName

      public Optional<String> getDisplayName(UUID uuid)
      Used to get the player display name in the cache.

      If not cached, one from the database will be cached.

      Parameters:
      uuid - UUID of the player.
      Returns:
      latest displayName or null if none are saved.