added sql support so now people can use mongo or sql

This commit is contained in:
spacerocket62
2020-10-27 14:04:05 -07:00
parent d4cf8b7414
commit b8357b6d1d
6 changed files with 180 additions and 28 deletions

View File

@ -0,0 +1,23 @@
package me.totalfreedom.plex.cache;
import com.google.common.collect.Maps;
import me.totalfreedom.plex.player.PlexPlayer;
import me.totalfreedom.plex.player.PunishedPlayer;
import java.util.Map;
import java.util.UUID;
public class PlayerCache
{
private static Map<UUID, PlexPlayer> plexPlayerMap = Maps.newHashMap();
private static Map<UUID, PunishedPlayer> punishedPlayerMap = Maps.newHashMap();
public static Map<UUID, PunishedPlayer> getPunishedPlayerMap() {
return punishedPlayerMap;
}
public static Map<UUID, PlexPlayer> getPlexPlayerMap() {
return plexPlayerMap;
}
}