This commit is contained in:
Xephi59
2015-07-20 02:41:14 +02:00
parent 663c4a48d1
commit 480db6816f
22 changed files with 98 additions and 129 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import java.util.concurrent.ConcurrentHashMap;
public class PlayerCache {
private static PlayerCache singleton = null;
private volatile static PlayerCache singleton = null;
private ConcurrentHashMap<String, PlayerAuth> cache;
private PlayerCache() {
+2 -2
View File
@@ -546,9 +546,9 @@ public class FileCache {
file = new File("cache/" + player.getName().toLowerCase() + ".cache");
}
if (file.exists()) {
if (file.isDirectory()) {
if (file.isDirectory() && file.listFiles() != null) {
for (File f : file.listFiles()) {
if (f.isDirectory()) {
if (f.isDirectory() && f.listFiles() != null) {
for (File a : f.listFiles()) {
a.delete();
}
+1 -1
View File
@@ -17,7 +17,7 @@ import fr.xephi.authme.settings.Settings;
public class LimboCache {
private static LimboCache singleton = null;
private volatile static LimboCache singleton = null;
public ConcurrentHashMap<String, LimboPlayer> cache;
private FileCache playerData;
public AuthMe plugin;