mirror of
https://github.com/songoda/SongodaCore.git
synced 2024-11-30 14:03:23 +01:00
add config clear
This commit is contained in:
parent
478be3f7d4
commit
2216fa65dc
@ -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() {
|
public boolean load() {
|
||||||
return load(getFile());
|
return load(getFile());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user