Fix color codes not properly propagating for chat color = 'None' option.

This commit is contained in:
Aust1n46 2021-08-01 17:43:49 -04:00
parent 1438ca206b
commit cc508eabe2
3 changed files with 4 additions and 2 deletions

View File

@ -71,6 +71,7 @@ Add config option to disable chat logging in the console
Make filters not case insensitive
Update filter system
Add option to disable filters without having to remove them all
Add GUI for /channel to join channels
Add configurable channel icon block/item

View File

@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>mineverse.Aus1n46.chat</groupId>
<artifactId>VentureChat</artifactId>
<version>3.0.1</version>
<version>3.0.2</version>
<url>https://bitbucket.org/Aust1n46/venturechat/src/master</url>
<scm>
<url>https://bitbucket.org/Aust1n46/venturechat/src/master</url>

View File

@ -475,7 +475,8 @@ public class ChatListener implements Listener {
chat = " " + chat;
}
if(curColor.equalsIgnoreCase("None")) {
chat = Format.getLastCode(format) + chat;
// Format the placeholders and their color codes to determine the last color code to use for the chat message color
chat = Format.getLastCode(Format.FormatStringAll(PlaceholderAPI.setBracketPlaceholders(mcp.getPlayer(), format))) + chat;
}
else {
chat = curColor + chat;