TotalFreedomMod/src/main/java/me/totalfreedom/totalfreedommod/rank/Title.java
2018-04-19 07:29:19 -07:00

53 lines
1.1 KiB
Java

package me.totalfreedom.totalfreedommod.rank;
import lombok.Getter;
import org.bukkit.ChatColor;
public enum Title implements Displayable
{
DEVELOPER("a", "Developer", ChatColor.DARK_PURPLE, "Dev"),
OWNER("the", "Owner", ChatColor.BLUE, "Owner");
private final String determiner;
@Getter
private final String name;
@Getter
private final String abbr;
@Getter
private final String tag;
@Getter
private final String coloredTag;
@Getter
private final ChatColor color;
private Title(String determiner, String name, ChatColor color, String tag)
{
this.determiner = determiner;
this.name = name;
this.coloredTag = ChatColor.DARK_GRAY + "[" + color + tag + ChatColor.DARK_GRAY + "]" + color;
this.abbr = tag;
this.tag = "[" + tag + "]";
this.color = color;
}
@Override
public String getColoredName()
{
return color + name;
}
@Override
public String getColoredLoginMessage()
{
return determiner + " " + color + ChatColor.ITALIC + name;
}
@Override
public String getAbbr()
{
return abbr;
}
}