public bool IsCacheEnabled(bool verbose)
{
if (fGameVersion != GameVersion.BF3) {
ConsoleWarn("BattlelogCache only supports BF3!");
return false;
}
List<MatchCommand> registered = this.GetRegisteredCommands();
foreach (MatchCommand command in registered) {
if (command.RegisteredClassname.CompareTo("CBattlelogCache") == 0 && command.RegisteredMethodName.CompareTo("PlayerLookup") == 0) {
if (verbose) DebugFetch("^bBattlelog Cache^n plugin will be used for stats fetching!");
return true;
} else {
DebugFetch("Registered P: " + command.RegisteredClassname + ", M: " + command.RegisteredMethodName);
}
}
if (verbose) DebugWrite("^1^bBattlelog Cache^n plugin is disabled; installing/updating and enabling the plugin is recommended for use with " + GetPluginName() + "!", 3);
return false;
}