From 97a0c77fa6b3dbf79a63544ddbb8e92e3f8353c8 Mon Sep 17 00:00:00 2001 From: elmon <9622479+Elmon11@users.noreply.github.com> Date: Wed, 6 Oct 2021 14:29:54 +0200 Subject: [PATCH] Update DiscordToMinecraftListener.java --- .../totalfreedommod/discord/DiscordToMinecraftListener.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/totalfreedom/totalfreedommod/discord/DiscordToMinecraftListener.java b/src/main/java/me/totalfreedom/totalfreedommod/discord/DiscordToMinecraftListener.java index a0ee2df6..562c9f8d 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/discord/DiscordToMinecraftListener.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/discord/DiscordToMinecraftListener.java @@ -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 repliedTo = msg.getReferencedMessage() + 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 + " ") + message.append(ChatColor.RESET + " "); } ComponentBuilder builder = new ComponentBuilder(message.toString());