mirror of
https://github.com/plexusorg/Plex.git
synced 2025-07-01 07:36:42 +00:00
added sql support so now people can use mongo or sql
This commit is contained in:
23
src/main/java/me/totalfreedom/plex/cache/PlayerCache.java
vendored
Normal file
23
src/main/java/me/totalfreedom/plex/cache/PlayerCache.java
vendored
Normal 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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user