mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI
synced 2024-11-22 14:16:53 +01:00
Dont trim
This commit is contained in:
parent
a00cbf4be3
commit
722e987b93
@ -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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user