[SUBJECT TO TESTING DO NOT PUSH]

This commit is contained in:
elmon 2021-10-06 14:24:43 +02:00 committed by GitHub
parent a598c933ec
commit 8f6674628c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,20 @@ public class DiscordToMinecraftListener extends ListenerAdapter
{
message.append(" ").append(tag);
}
message.append(" ").append(ChatColor.RED).append(ChatColor.stripColor(member.getEffectiveName())).append(ChatColor.DARK_GRAY).append(":").append(ChatColor.RESET);
message.append(" ").append(ChatColor.RED).append(ChatColor.stripColor(member.getEffectiveName())).append(ChatColor.DARK_GRAY).append(":");
Message repliedTo = msg.getReferencedMessage()
if (repliedTo != null)
{
message.append(ChatColor.DARK_GRAY + ChatColor.ITALIC +"[" + ChatColor.GRAY + "Replying to " + ChatColor.BOLD + repliedTo.getAuthor().getName() + ChatColor.RESET + ChatColor.DARK_GRAY+ "]" + ChatColor.RESET);
}
else
{
message.append(ChatColor.RESET + " ")
}
ComponentBuilder builder = new ComponentBuilder(message.toString());
if (!msg.getContentDisplay().isEmpty())
{