fix: ban unsupported SonarPlugin

This commit is contained in:
goat 2021-02-10 15:39:54 +01:00
parent a777c58a89
commit b2897315b4

View file

@ -239,12 +239,16 @@ namespace Dalamud.Plugin
return false;
}
if (pluginDef.InternalName == "FPSPlugin" && pluginDef.AssemblyVersion == "1.4.2.0")
{
if (pluginDef.InternalName == "FPSPlugin" && pluginDef.AssemblyVersion == "1.4.2.0") {
Log.Error("Banned PingPlugin");
return false;
}
if (pluginDef.InternalName == "SonarPlugin" && pluginDef.AssemblyVersion == "0.1.3.1") {
Log.Error("Banned SonarPlugin");
return false;
}
if (pluginDef.DalamudApiLevel < DALAMUD_API_LEVEL) {
Log.Error("Incompatible API level: {0}", dllFile.FullName);
disabledFile.Create().Close();