Class PlayerCache

java.lang.Object
dev.plex.cache.PlayerCache
All Implemented Interfaces:
dev.plex.api.IPlayerCache<PlexPlayer>

public class PlayerCache extends Object implements dev.plex.api.IPlayerCache<PlexPlayer>
Cache storage
  • Field Details

    • plexPlayerMap

      private static final Map<UUID,PlexPlayer> plexPlayerMap
      A key/value pair where the key is the unique ID of the Plex Player
  • Constructor Details

    • PlayerCache

      public PlayerCache()
  • Method Details

    • getPlexPlayerMap

      public Map<UUID,PlexPlayer> getPlexPlayerMap()
      A key/value pair where the key is the unique ID of the Punished Player
      Specified by:
      getPlexPlayerMap in interface dev.plex.api.IPlayerCache<PlexPlayer>
    • getPlexPlayer

      public PlexPlayer getPlexPlayer(UUID uuid)
      Specified by:
      getPlexPlayer in interface dev.plex.api.IPlayerCache<PlexPlayer>