Add npcs-in-balance-ranking configurable option. Resolves #716.

This commit is contained in:
Ali Moghnieh 2016-07-06 19:34:25 +01:00
parent d75e0ce26e
commit 992ef5dc91
4 changed files with 23 additions and 1 deletions

View file

@ -536,6 +536,7 @@ public class Settings implements net.ess3.api.ISettings {
isCustomQuitMessage = !customQuitMessage.equals("none");
muteCommands = _getMuteCommands();
commandCooldowns = _getCommandCooldowns();
npcsInBalanceRanking = _isNpcsInBalanceRanking();
}
private List<Integer> itemSpawnBl = new ArrayList<Integer>();
@ -1262,4 +1263,15 @@ public class Settings implements net.ess3.api.ISettings {
// TODO: enable per command cooldown specification for persistence.
return config.getBoolean("command-cooldown-persistence", true);
}
private boolean npcsInBalanceRanking = false;
public boolean _isNpcsInBalanceRanking() {
return config.getBoolean("npcs-in-balance-ranking", false);
}
@Override
public boolean isNpcsInBalanceRanking() {
return npcsInBalanceRanking;
}
}