diff --git a/common/src/main/java/com/discordsrv/common/placeholder/PlaceholderServiceImpl.java b/common/src/main/java/com/discordsrv/common/placeholder/PlaceholderServiceImpl.java index cc0e8b4d..8ae1c0f7 100644 --- a/common/src/main/java/com/discordsrv/common/placeholder/PlaceholderServiceImpl.java +++ b/common/src/main/java/com/discordsrv/common/placeholder/PlaceholderServiceImpl.java @@ -217,7 +217,7 @@ public class PlaceholderServiceImpl implements PlaceholderService { Pattern.LITERAL ) .matcher(input) - .replaceFirst(output instanceof String ? (String) output : output.toString()); + .replaceFirst(Matcher.quoteReplacement(output.toString())); } private Object getResultRepresentation(List results, String placeholder, Matcher matcher) {