Plex/src/main/java/dev/plex/cache/PlayerCache.java

35 lines
838 B
Java
Raw Normal View History

2021-01-03 07:21:15 +00:00
package dev.plex.cache;
import com.google.common.collect.Maps;
2021-01-03 07:21:15 +00:00
import dev.plex.player.PlexPlayer;
import dev.plex.player.PunishedPlayer;
2022-01-04 03:04:39 +00:00
2020-11-05 21:17:14 +00:00
import java.util.Map;
import java.util.UUID;
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);
}
}