mirror of
https://github.com/plexusorg/Plex.git
synced 2024-11-12 23:03:33 +00:00
35 lines
838 B
Java
35 lines
838 B
Java
package dev.plex.cache;
|
|
|
|
import com.google.common.collect.Maps;
|
|
import dev.plex.player.PlexPlayer;
|
|
import dev.plex.player.PunishedPlayer;
|
|
|
|
import java.util.Map;
|
|
import java.util.UUID;
|
|
|
|
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);
|
|
}
|
|
}
|