Allow setting to be reset through the use of config key default (#6442)

This commit is contained in:
L0615T1C5-216AC-9437
2021-12-17 17:13:49 -05:00
committed by GitHub
parent 4b6541ae4e
commit 7880135824

View File

@ -576,7 +576,9 @@ public class ServerControl implements ApplicationListener{
if(arg.length == 1){
info("'@' is currently @.", c.name(), c.get());
}else{
if(c.isBool()){
if (arg[1].equals("default")){
c.set(c.defaultValue);
}else if(c.isBool()){
c.set(arg[1].equals("on") || arg[1].equals("true"));
}else if(c.isNum()){
try{