mirror of
https://github.com/plexusorg/Plex.git
synced 2024-12-22 17:17:37 +00:00
Actually fix colors in nicknames
Co-Authored-By: Taahh <9047036+Taahh@users.noreply.github.com>
This commit is contained in:
parent
3611148b4c
commit
f806470fd5
@ -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())
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user