mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-30 02:05:41 +00:00
[SUBJECT TO TESTING DO NOT PUSH]
This commit is contained in:
parent
a598c933ec
commit
8f6674628c
@ -34,7 +34,20 @@ public class DiscordToMinecraftListener extends ListenerAdapter
|
|||||||
{
|
{
|
||||||
message.append(" ").append(tag);
|
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());
|
ComponentBuilder builder = new ComponentBuilder(message.toString());
|
||||||
if (!msg.getContentDisplay().isEmpty())
|
if (!msg.getContentDisplay().isEmpty())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user