Dont trim

This commit is contained in:
extendedclip 2020-08-06 13:27:58 -04:00
parent a00cbf4be3
commit 722e987b93

View File

@ -168,7 +168,12 @@ public final class CharsReplacer implements Replacer {
builder.append(ChatColor.translateAlternateColorCodes('&', replacement)); builder.append(ChatColor.translateAlternateColorCodes('&', replacement));
} }
return builder.toString().trim(); char c = builder.charAt(builder.length() - 1);
if (c == ' ') {
return builder.substring(0, builder.length() - 1);
} else {
return builder.toString();
}
} }
} }