mirror of
https://github.com/plexusorg/Plex.git
synced 2024-11-15 00:03:33 +00:00
34 lines
873 B
Java
34 lines
873 B
Java
package me.totalfreedom.plex.cache;
|
|
|
|
import com.google.common.collect.Maps;
|
|
import java.util.Map;
|
|
import java.util.UUID;
|
|
import me.totalfreedom.plex.player.PlexPlayer;
|
|
import me.totalfreedom.plex.player.PunishedPlayer;
|
|
|
|
public class PlayerCache
|
|
{
|
|
private static final Map<UUID, PlexPlayer> plexPlayerMap = Maps.newHashMap();
|
|
private static final Map<UUID, PunishedPlayer> punishedPlayerMap = Maps.newHashMap();
|
|
|
|
public static Map<UUID, PunishedPlayer> getPunishedPlayerMap()
|
|
{
|
|
return punishedPlayerMap;
|
|
}
|
|
|
|
public static Map<UUID, PlexPlayer> getPlexPlayerMap()
|
|
{
|
|
return plexPlayerMap;
|
|
}
|
|
|
|
public static PunishedPlayer getPunishedPlayer(UUID uuid)
|
|
{
|
|
return getPunishedPlayerMap().get(uuid);
|
|
}
|
|
|
|
public static PlexPlayer getPlexPlayer(UUID uuid)
|
|
{
|
|
return getPlexPlayerMap().get(uuid);
|
|
}
|
|
}
|