private boolean hookPlugins()
{
Plugin spout = pm.getPlugin("Spout");
Plugin citizens = pm.getPlugin("Citizens");
if ((spout != null) && (citizens != null))
{
if (spout.isEnabled())
{
System.out.println("[CitizenSkins] Successfully hooked into Spout " + spout.getDescription().getVersion() + " !");
if (citizens.isEnabled())
{
System.out.println("[CitizenSkins] Successfully hooked into Citizens " + citizens.getDescription().getVersion() + " !");
}
else
{
return false;
}
}
else
{
return false;
}
}
else
{
System.out.println("[CitizenSkins] Depends not found!");
return false;
}
return true;
}