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 plexPlayerMap = Maps.newHashMap(); private static final Map punishedPlayerMap = Maps.newHashMap(); public static Map getPunishedPlayerMap() { return punishedPlayerMap; } public static Map getPlexPlayerMap() { return plexPlayerMap; } public static PunishedPlayer getPunishedPlayer(UUID uuid) { return getPunishedPlayerMap().get(uuid); } public static PlexPlayer getPlexPlayer(UUID uuid) { return getPlexPlayerMap().get(uuid); } }