Allow setting to be reset through the use of config key default (#6442)
This commit is contained in:
committed by
GitHub
parent
4b6541ae4e
commit
7880135824
@@ -576,7 +576,9 @@ public class ServerControl implements ApplicationListener{
|
|||||||
if(arg.length == 1){
|
if(arg.length == 1){
|
||||||
info("'@' is currently @.", c.name(), c.get());
|
info("'@' is currently @.", c.name(), c.get());
|
||||||
}else{
|
}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"));
|
c.set(arg[1].equals("on") || arg[1].equals("true"));
|
||||||
}else if(c.isNum()){
|
}else if(c.isNum()){
|
||||||
try{
|
try{
|
||||||
|
|||||||
Reference in New Issue
Block a user