add config clear

This commit is contained in:
jascotty2 2019-09-08 17:00:58 -05:00
parent 478be3f7d4
commit 2216fa65dc

View File

@ -327,6 +327,22 @@ public class Config extends ConfigSection {
}
}
public Config clearConfig(boolean clearDefaults) {
root.values.clear();
root.configComments.clear();
if (clearDefaults) {
root.defaultComments.clear();
root.defaults.clear();
}
return this;
}
public Config clearDefaults() {
root.defaultComments.clear();
root.defaults.clear();
return this;
}
public boolean load() {
return load(getFile());
}