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 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); } }