Extend eco disable option to block eco lookups. This can be required to combat slow SQL economies.

This option is not recommended under normal circumstances.
This commit is contained in:
KHobbits 2013-08-28 17:50:28 +01:00
parent 3fb4d1f3bf
commit eca3be5cf3
2 changed files with 48 additions and 12 deletions

View file

@ -518,6 +518,7 @@ public class Settings implements net.ess3.api.ISettings
economyLagWarning = _getEconomyLagWarning();
economyLog = _isEcoLogEnabled();
economyLogUpdate = _isEcoLogUpdateEnabled();
economyDisabled = _isEcoDisabled();
}
private List<Integer> itemSpawnBl = new ArrayList<Integer>();
@ -650,12 +651,18 @@ public class Settings implements net.ess3.api.ISettings
{
return config.getBoolean("trade-in-stacks-" + id, false);
}
// #easteregg
private boolean economyDisabled = false;
public boolean _isEcoDisabled()
{
return config.getBoolean("disable-eco", false);
}
@Override
public boolean isEcoDisabled()
{
return config.getBoolean("disable-eco", false);
return economyDisabled;
}
@Override