Update DiscordToMinecraftListener.java

This commit is contained in:
elmon 2021-10-06 14:29:54 +02:00 committed by GitHub
parent dc17d0f25e
commit 97a0c77fa6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,14 +37,14 @@ public class DiscordToMinecraftListener extends ListenerAdapter
message.append(" ").append(ChatColor.RED).append(ChatColor.stripColor(member.getEffectiveName())).append(ChatColor.DARK_GRAY).append(":"); message.append(" ").append(ChatColor.RED).append(ChatColor.stripColor(member.getEffectiveName())).append(ChatColor.DARK_GRAY).append(":");
Message repliedTo = msg.getReferencedMessage() Message repliedTo = msg.getReferencedMessage();
if (repliedTo != null) 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); message.append(ChatColor.DARK_GRAY + ChatColor.ITALIC +"[" + ChatColor.GRAY + "Replying to " + ChatColor.BOLD + repliedTo.getAuthor().getName() + ChatColor.RESET + ChatColor.DARK_GRAY+ "]" + ChatColor.RESET);
} else } else
{ {
message.append(ChatColor.RESET + " ") message.append(ChatColor.RESET + " ");
} }
ComponentBuilder builder = new ComponentBuilder(message.toString()); ComponentBuilder builder = new ComponentBuilder(message.toString());