Plex/src/main/java/me/totalfreedom/plex/cache/PlayerCache.java

34 lines
873 B
Java
Raw Normal View History

package me.totalfreedom.plex.cache;
import com.google.common.collect.Maps;
import java.util.Map;
import java.util.UUID;
2020-10-28 03:49:56 +00:00
import me.totalfreedom.plex.player.PlexPlayer;
import me.totalfreedom.plex.player.PunishedPlayer;
public class PlayerCache
{
2020-10-28 03:49:56 +00:00
private static final Map<UUID, PlexPlayer> plexPlayerMap = Maps.newHashMap();
private static final Map<UUID, PunishedPlayer> punishedPlayerMap = Maps.newHashMap();
2020-10-28 03:49:56 +00:00
public static Map<UUID, PunishedPlayer> getPunishedPlayerMap()
{
return punishedPlayerMap;
}
2020-10-28 03:49:56 +00:00
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);
}
}