mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-08-03 21:15:28 +02:00
Add mcMMO_Region_System.Enabled to persistent_data.yml (removed from hidden config)
This commit is contained in:
@@ -9,7 +9,6 @@ public class HiddenConfig {
|
||||
private static HiddenConfig instance;
|
||||
private final String fileName;
|
||||
private YamlConfiguration config;
|
||||
private boolean chunkletsEnabled;
|
||||
private int conversionRate;
|
||||
private boolean useEnchantmentBuffs;
|
||||
|
||||
@@ -30,15 +29,11 @@ public class HiddenConfig {
|
||||
InputStreamReader reader = mcMMO.p.getResourceAsReader(fileName);
|
||||
if (reader != null) {
|
||||
config = YamlConfiguration.loadConfiguration(reader);
|
||||
chunkletsEnabled = config.getBoolean("Options.Chunklets", true);
|
||||
conversionRate = config.getInt("Options.ConversionRate", 1);
|
||||
useEnchantmentBuffs = config.getBoolean("Options.EnchantmentBuffs", true);
|
||||
}
|
||||
}
|
||||
|
||||
public boolean getChunkletsEnabled() {
|
||||
return chunkletsEnabled;
|
||||
}
|
||||
|
||||
public int getConversionRate() {
|
||||
return conversionRate;
|
||||
|
@@ -34,4 +34,9 @@ public class PersistentDataConfig extends AutoUpdateConfigLoader {
|
||||
return config.getBoolean(key, false);
|
||||
}
|
||||
|
||||
public boolean useBlockTracker() {
|
||||
return config.getBoolean("mcMMO_Region_System.Enabled", true);
|
||||
}
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user