From a00cbf4be325738e208455ebdf697fc83f4c3639 Mon Sep 17 00:00:00 2001 From: extendedclip Date: Thu, 6 Aug 2020 11:44:34 -0400 Subject: [PATCH] trim whitespaces --- .../java/me/clip/placeholderapi/replacer/CharsReplacer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/clip/placeholderapi/replacer/CharsReplacer.java b/src/main/java/me/clip/placeholderapi/replacer/CharsReplacer.java index 709bd35..98c74ac 100644 --- a/src/main/java/me/clip/placeholderapi/replacer/CharsReplacer.java +++ b/src/main/java/me/clip/placeholderapi/replacer/CharsReplacer.java @@ -168,7 +168,7 @@ public final class CharsReplacer implements Replacer { builder.append(ChatColor.translateAlternateColorCodes('&', replacement)); } - return builder.toString(); + return builder.toString().trim(); } }