New command system improvements, broadcast toggles, config fixes #62

Merged
NorbiPeti merged 23 commits from dev into master 2019-03-17 01:27:43 +00:00
Showing only changes of commit 9620ae44f6 - Show all commits

View file

@ -56,7 +56,10 @@ public class ConfigData<T> { //TODO: Save after a while
val = primitiveDef;
}
if (!saved && Objects.equals(val, primitiveDef)) { //String needs .equals()
set(def); //Save default value - def is always set
if (def == null && config != null) //In Discord's case def may be null
config.set(path, primitiveDef);
else
set(def); //Save default value - def is always set
saved = true;
}
if (getter != null) {