Remove player from cache on quit.

This commit is contained in:
DNx5
2016-02-26 13:10:49 +07:00
parent 8bf6817a5f
commit b4aebb685c
2 changed files with 9 additions and 0 deletions
@@ -60,6 +60,10 @@ public class CacheDataSource implements DataSource {
});
}
public LoadingCache<String, Optional<PlayerAuth>> getCachedAuths() {
return cachedAuths;
}
@Override
public synchronized boolean isAuthAvailable(String user) {
return getAuth(user) != null;