Don't call plugin manager in Settings.

This commit is contained in:
snowleo 2012-10-15 20:30:52 +02:00
parent 28d2a9ed2e
commit 8dbcebda53
3 changed files with 16 additions and 1 deletions

View file

@ -696,6 +696,7 @@ public class Settings implements ISettings
}
private boolean prefixsuffixconfigured = false;
private boolean addprefixsuffix = false;
private boolean essentialsChatActive = false;
private boolean _addPrefixSuffix()
{
@ -707,10 +708,16 @@ public class Settings implements ISettings
return config.hasProperty("add-prefix-suffix");
}
@Override
public void setEssentialsChatActive(boolean essentialsChatActive)
{
this.essentialsChatActive = essentialsChatActive;
}
@Override
public boolean addPrefixSuffix()
{
return prefixsuffixconfigured ? addprefixsuffix : ess.getServer().getPluginManager().isPluginEnabled("EssentialsChat");
return prefixsuffixconfigured ? addprefixsuffix : essentialsChatActive;
}
private boolean disablePrefix = false;