From b986c4dcb885b7e4a50c9be322efe9e153d80b31 Mon Sep 17 00:00:00 2001 From: fullwall Date: Wed, 14 Apr 2021 19:41:37 +0800 Subject: [PATCH] Fix cooldown setting message parsing - $ was not included in initial setting default, changed substitutor to avoid migrating settings --- main/src/main/java/net/citizensnpcs/trait/CommandTrait.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/src/main/java/net/citizensnpcs/trait/CommandTrait.java b/main/src/main/java/net/citizensnpcs/trait/CommandTrait.java index 77ca75e21..4ccef1c2f 100644 --- a/main/src/main/java/net/citizensnpcs/trait/CommandTrait.java +++ b/main/src/main/java/net/citizensnpcs/trait/CommandTrait.java @@ -626,7 +626,7 @@ public class CommandTrait extends Trait { @Override public String apply(String t) { - return StrSubstitutor.replace(t, map); + return StrSubstitutor.replace(t, map, "{", "}"); } } } \ No newline at end of file