replace cache with Json

This commit is contained in:
DNx5
2015-09-13 22:08:18 +07:00
parent 851eab2fd0
commit 576ff59fcd
9 changed files with 226 additions and 297 deletions
+3 -3
View File
@@ -3,7 +3,7 @@ package fr.xephi.authme.cache.limbo;
import fr.xephi.authme.AuthMe;
import fr.xephi.authme.ConsoleLogger;
import fr.xephi.authme.cache.backup.DataFileCache;
import fr.xephi.authme.cache.backup.FileCache;
import fr.xephi.authme.cache.backup.JsonCache;
import fr.xephi.authme.events.ResetInventoryEvent;
import fr.xephi.authme.events.StoreInventoryEvent;
import fr.xephi.authme.settings.Settings;
@@ -19,13 +19,13 @@ public class LimboCache {
private volatile static LimboCache singleton = null;
public ConcurrentHashMap<String, LimboPlayer> cache;
private FileCache playerData;
private JsonCache playerData;
public AuthMe plugin;
private LimboCache(AuthMe plugin) {
this.plugin = plugin;
this.cache = new ConcurrentHashMap<String, LimboPlayer>();
this.playerData = new FileCache(plugin);
this.playerData = new JsonCache(plugin);
}
public void addLimboPlayer(Player player) {