From 6a8127e7cdd5c59daa794d9469dac04a1aa26668 Mon Sep 17 00:00:00 2001 From: TranquillyUnpleasant <62061444+TranquillyUnpleasant@users.noreply.github.com> Date: Thu, 1 Apr 2021 18:14:20 +0500 Subject: [PATCH] un-escape \n for string configs. (#5042) Currently it escapes them to a literal text, making multi line messages impossible. --- server/src/mindustry/server/ServerControl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/mindustry/server/ServerControl.java b/server/src/mindustry/server/ServerControl.java index 941df7579b..b82105b0fb 100644 --- a/server/src/mindustry/server/ServerControl.java +++ b/server/src/mindustry/server/ServerControl.java @@ -554,7 +554,7 @@ public class ServerControl implements ApplicationListener{ return; } }else if(c.isString()){ - c.set(arg[1]); + c.set(arg[1].replace("\\n", "\n")); } info("@ set to @.", c.name(), c.get());