This commit is contained in:
Video 2021-07-29 05:49:37 -06:00
parent 5fa3f9f26a
commit cc9c07d498

View File

@ -30,15 +30,12 @@ public class TFGuildsBridge extends FreedomService
try try
{ {
final Plugin tfGuilds = server.getPluginManager().getPlugin("TFGuilds"); final Plugin tfGuilds = server.getPluginManager().getPlugin("TFGuilds");
if (tfGuilds != null && tfGuilds.isEnabled()) if (tfGuilds != null && tfGuilds.isEnabled() && tfGuilds instanceof TFGuilds)
{
if (tfGuilds instanceof TFGuilds)
{ {
enabled = true; enabled = true;
return true; return true;
} }
} }
}
catch (NoClassDefFoundError ex) catch (NoClassDefFoundError ex)
{ {
return false; return false;