Port old ItemDb back

This commit is contained in:
md678685 2018-11-19 14:13:05 +00:00
parent 7dd52dab32
commit f7a1149cac
6 changed files with 588 additions and 5 deletions

View file

@ -537,6 +537,7 @@ public class Settings implements net.ess3.api.ISettings {
defaultEnabledConfirmCommands = _getDefaultEnabledConfirmCommands();
isCompassTowardsHomePerm = _isCompassTowardsHomePerm();
isAllowWorldInBroadcastworld = _isAllowWorldInBroadcastworld();
itemDbType = _getItemDbType();
}
private List<Material> itemSpawnBl = new ArrayList<Material>();
@ -1461,4 +1462,15 @@ public class Settings implements net.ess3.api.ISettings {
public boolean isAllowWorldInBroadcastworld() {
return isAllowWorldInBroadcastworld;
}
private String itemDbType;
private String _getItemDbType() {
return config.getString("item-db-type", "auto");
}
@Override
public String getItemDbType() {
return itemDbType;
}
}