mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-07-02 12:56:40 +00:00
LuckPerms Integration (1.5/2)
This commit is contained in:
@ -1,5 +1,9 @@
|
||||
package me.totalfreedom.totalfreedommod.rank;
|
||||
|
||||
import net.kyori.adventure.text.Component;
|
||||
import net.kyori.adventure.text.JoinConfiguration;
|
||||
import net.kyori.adventure.text.format.NamedTextColor;
|
||||
import net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer;
|
||||
import net.md_5.bungee.api.ChatColor;
|
||||
|
||||
public enum Title implements Displayable
|
||||
@ -21,7 +25,7 @@ public enum Title implements Displayable
|
||||
|
||||
private final String tag;
|
||||
|
||||
private final String coloredTag;
|
||||
private final Component coloredTag;
|
||||
|
||||
private final ChatColor color;
|
||||
|
||||
@ -35,7 +39,7 @@ public enum Title implements Displayable
|
||||
this.article = article;
|
||||
this.name = name;
|
||||
this.plural = plural;
|
||||
this.coloredTag = ChatColor.DARK_GRAY + "[" + color + tag + ChatColor.DARK_GRAY + "]" + color;
|
||||
this.coloredTag = generateColoredTag(color + tag);
|
||||
this.abbr = tag;
|
||||
this.tag = "[" + tag + "]";
|
||||
this.color = color;
|
||||
@ -99,7 +103,7 @@ public enum Title implements Displayable
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getColoredTag()
|
||||
public Component getColoredTag()
|
||||
{
|
||||
return coloredTag;
|
||||
}
|
||||
|
Reference in New Issue
Block a user