LuckPerms Integration (1.5/2)

This commit is contained in:
Paul Reilly
2023-03-29 22:00:35 -05:00
parent 65540b7f3a
commit cc244fc4f7
24 changed files with 230 additions and 209 deletions

View File

@ -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;
}