mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-26 17:05:01 +00:00
Update DiscordToMinecraftListener.java
This commit is contained in:
parent
dc17d0f25e
commit
97a0c77fa6
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user