From 7880135824b6dce61bf2411ce2d6dac0a1600b8d Mon Sep 17 00:00:00 2001 From: L0615T1C5-216AC-9437 <60281819+L0615T1C5-216AC-9437@users.noreply.github.com> Date: Fri, 17 Dec 2021 17:13:49 -0500 Subject: [PATCH] Allow setting to be reset through the use of `config key default` (#6442) --- server/src/mindustry/server/ServerControl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/src/mindustry/server/ServerControl.java b/server/src/mindustry/server/ServerControl.java index 230180772d..2a4026d792 100644 --- a/server/src/mindustry/server/ServerControl.java +++ b/server/src/mindustry/server/ServerControl.java @@ -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{