diff --git a/src/main/java/com/mojang/brigadier/exceptions/ParameterizedCommandExceptionType.java b/src/main/java/com/mojang/brigadier/exceptions/ParameterizedCommandExceptionType.java index 110c29b..7741919 100644 --- a/src/main/java/com/mojang/brigadier/exceptions/ParameterizedCommandExceptionType.java +++ b/src/main/java/com/mojang/brigadier/exceptions/ParameterizedCommandExceptionType.java @@ -30,7 +30,7 @@ public class ParameterizedCommandExceptionType implements CommandExceptionType { final Matcher matcher = PATTERN.matcher(message); final StringBuffer result = new StringBuffer(); while (matcher.find()) { - matcher.appendReplacement(result, exception.getData().get(matcher.group(1)).toString()); + matcher.appendReplacement(result, Matcher.quoteReplacement(exception.getData().get(matcher.group(1)).toString())); } matcher.appendTail(result); return result.toString();