Actually fix colors in nicknames

Co-Authored-By: Taahh <9047036+Taahh@users.noreply.github.com>
This commit is contained in:
Telesphoreo 2022-08-01 23:38:18 -05:00
parent 3611148b4c
commit f806470fd5
2 changed files with 6 additions and 2 deletions

View File

@ -84,7 +84,11 @@ public class ChatListener extends PlexListener
} }
return component return component
.append(Component.empty()) .append(Component.empty())
.append(SafeMiniMessage.mmDeserialize(plugin.config.getString("chat.name-color") + SafeMiniMessage.mmSerialize(sourceDisplayName))) .append(
source.name().equals(sourceDisplayName) ?
SafeMiniMessage.mmDeserialize(plugin.config.getString("chat.name-color") + SafeMiniMessage.mmSerialize(sourceDisplayName))
: SafeMiniMessage.mmDeserialize(plugin.config.getString("chat.name-color")).append(sourceDisplayName)
)
.append(Component.space()) .append(Component.space())
.append(Component.text("»").color(NamedTextColor.GRAY)) .append(Component.text("»").color(NamedTextColor.GRAY))
.append(Component.space()) .append(Component.space())

View File

@ -142,7 +142,7 @@ public class UpdateChecker implements PlexBase
if (verbosity >= 1) if (verbosity >= 1)
{ {
sender.sendMessage(Component.text("Plex is not up to date!", NamedTextColor.RED)); sender.sendMessage(Component.text("Plex is not up to date!", NamedTextColor.RED));
sender.sendMessage(Component.text("Download a new version at: " + DOWNLOAD_PAGE).color(NamedTextColor.RED)); sender.sendMessage(Component.text("Download a new version at: " + DOWNLOAD_PAGE + "Plex").color(NamedTextColor.RED));
sender.sendMessage(Component.text("Or run: /plex update").color(NamedTextColor.RED)); sender.sendMessage(Component.text("Or run: /plex update").color(NamedTextColor.RED));
} }
return true; return true;