2015-11-15 23:32:04 +00:00
|
|
|
package me.totalfreedom.totalfreedommod.rank;
|
2015-10-19 17:43:46 +00:00
|
|
|
|
|
|
|
import lombok.Getter;
|
|
|
|
import org.bukkit.ChatColor;
|
|
|
|
|
2016-05-12 19:40:39 +00:00
|
|
|
public enum Title implements Displayable
|
2015-10-19 17:43:46 +00:00
|
|
|
{
|
|
|
|
|
2018-06-01 21:28:44 +00:00
|
|
|
MASTER_BUILDER("a", "Master Builder", ChatColor.DARK_AQUA, "MB"),
|
2019-08-04 02:50:31 +00:00
|
|
|
VERIFIED_ADMIN("a", "Verified Admin", ChatColor.LIGHT_PURPLE, "VA"),
|
2018-05-24 23:25:22 +00:00
|
|
|
EXECUTIVE("an", "Executive", ChatColor.RED, "Exec"),
|
2016-05-12 19:40:39 +00:00
|
|
|
DEVELOPER("a", "Developer", ChatColor.DARK_PURPLE, "Dev"),
|
2019-02-22 23:16:08 +00:00
|
|
|
OWNER("the", "Owner", ChatColor.DARK_RED, "Owner");
|
2015-10-19 17:43:46 +00:00
|
|
|
|
2016-05-12 19:40:39 +00:00
|
|
|
private final String determiner;
|
2015-10-19 17:43:46 +00:00
|
|
|
@Getter
|
|
|
|
private final String name;
|
|
|
|
@Getter
|
2018-04-19 14:29:19 +00:00
|
|
|
private final String abbr;
|
|
|
|
@Getter
|
2015-10-19 17:43:46 +00:00
|
|
|
private final String tag;
|
|
|
|
@Getter
|
2016-05-12 19:40:39 +00:00
|
|
|
private final String coloredTag;
|
2015-10-19 17:43:46 +00:00
|
|
|
@Getter
|
2016-05-12 19:40:39 +00:00
|
|
|
private final ChatColor color;
|
2015-10-19 17:43:46 +00:00
|
|
|
|
2016-05-12 19:40:39 +00:00
|
|
|
private Title(String determiner, String name, ChatColor color, String tag)
|
2015-10-19 17:43:46 +00:00
|
|
|
{
|
|
|
|
this.determiner = determiner;
|
2016-05-12 19:40:39 +00:00
|
|
|
this.name = name;
|
|
|
|
this.coloredTag = ChatColor.DARK_GRAY + "[" + color + tag + ChatColor.DARK_GRAY + "]" + color;
|
2018-04-19 14:29:19 +00:00
|
|
|
this.abbr = tag;
|
|
|
|
this.tag = "[" + tag + "]";
|
2016-05-12 19:40:39 +00:00
|
|
|
this.color = color;
|
2015-10-19 17:43:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getColoredName()
|
|
|
|
{
|
2016-05-12 19:40:39 +00:00
|
|
|
return color + name;
|
2015-10-19 17:43:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getColoredLoginMessage()
|
|
|
|
{
|
2016-05-12 19:40:39 +00:00
|
|
|
return determiner + " " + color + ChatColor.ITALIC + name;
|
2015-10-19 17:43:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|