mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-27 16:02:32 +00:00
Port old ItemDb back
This commit is contained in:
parent
7dd52dab32
commit
f7a1149cac
6 changed files with 588 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue