mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-06-28 19:26:42 +00:00
Fix discrepancies.
This commit is contained in:
@ -33,7 +33,7 @@
|
||||
<dependency>
|
||||
<groupId>io.projectreactor</groupId>
|
||||
<artifactId>reactor-core</artifactId>
|
||||
<version>3.5.1</version>
|
||||
<version>3.5.4</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
@ -16,6 +16,7 @@ import me.totalfreedom.totalfreedommod.rank.GroupProvider;
|
||||
import me.totalfreedom.totalfreedommod.rank.Title;
|
||||
import me.totalfreedom.totalfreedommod.util.FLog;
|
||||
import me.totalfreedom.totalfreedommod.util.FUtil;
|
||||
import net.kyori.adventure.text.format.TextColor;
|
||||
import net.md_5.bungee.api.chat.ClickEvent;
|
||||
import net.md_5.bungee.api.chat.ComponentBuilder;
|
||||
import net.md_5.bungee.api.chat.TextComponent;
|
||||
@ -33,7 +34,7 @@ public class AdminChatListener
|
||||
this.bot = tfd4j.getBot();
|
||||
}
|
||||
|
||||
public static net.md_5.bungee.api.ChatColor getColor(Displayable display)
|
||||
public static TextColor getColor(Displayable display)
|
||||
{
|
||||
return display.getColor();
|
||||
}
|
||||
@ -90,9 +91,9 @@ public class AdminChatListener
|
||||
if (!Strings.isNullOrEmpty(format))
|
||||
{
|
||||
Displayable display = getDisplay(member);
|
||||
net.md_5.bungee.api.ChatColor color = getColor(display);
|
||||
TextColor color = getColor(display);
|
||||
String m1 = format.replace("%name%", member.getDisplayName())
|
||||
.replace("%rank%", display.getAbbr())
|
||||
.replace("%rank%", FUtil.miniMessage(display.getAbbr()))
|
||||
.replace("%rankcolor%", color.toString())
|
||||
.replace("%msg%", FUtil.colorize(msg.getContent()));
|
||||
builder.append(FUtil.colorize(m1));
|
||||
|
Reference in New Issue
Block a user