2015-11-15 23:32:04 +00:00
|
|
|
package me.totalfreedom.totalfreedommod.rank;
|
2015-10-19 17:43:46 +00:00
|
|
|
|
2020-06-30 07:25:38 +00:00
|
|
|
import net.md_5.bungee.api.ChatColor;
|
2015-10-19 17:43:46 +00:00
|
|
|
|
2016-05-12 19:40:39 +00:00
|
|
|
public enum Title implements Displayable
|
2015-10-19 17:43:46 +00:00
|
|
|
{
|
|
|
|
|
2020-10-02 09:27:06 +00:00
|
|
|
MASTER_BUILDER("a", "Master Builder", ChatColor.DARK_AQUA, org.bukkit.ChatColor.DARK_AQUA, "MB", true, true),
|
2020-12-24 01:09:57 +00:00
|
|
|
VERIFIED_ADMIN("a", "Verified Admin", ChatColor.LIGHT_PURPLE, org.bukkit.ChatColor.LIGHT_PURPLE, "VA", false, true),
|
2020-10-02 09:27:06 +00:00
|
|
|
EXECUTIVE("an", "Executive", ChatColor.RED, org.bukkit.ChatColor.RED, "Exec", true, true),
|
|
|
|
DEVELOPER("a", "Developer", ChatColor.DARK_PURPLE, org.bukkit.ChatColor.DARK_PURPLE, "Dev", true, true),
|
|
|
|
OWNER("the", "Owner", ChatColor.of("#ff0000"), org.bukkit.ChatColor.DARK_RED, "Owner", true, true);
|
2015-10-19 17:43:46 +00:00
|
|
|
|
2020-12-25 19:46:43 +00:00
|
|
|
|
2020-10-25 16:27:56 +00:00
|
|
|
private final String article;
|
2020-12-25 19:46:43 +00:00
|
|
|
|
2015-10-19 17:43:46 +00:00
|
|
|
private final String name;
|
2020-12-25 19:46:43 +00:00
|
|
|
|
2018-04-19 14:29:19 +00:00
|
|
|
private final String abbr;
|
2020-12-25 19:46:43 +00:00
|
|
|
|
2015-10-19 17:43:46 +00:00
|
|
|
private final String tag;
|
2020-12-25 19:46:43 +00:00
|
|
|
|
2016-05-12 19:40:39 +00:00
|
|
|
private final String coloredTag;
|
2020-12-25 19:46:43 +00:00
|
|
|
|
2016-05-12 19:40:39 +00:00
|
|
|
private final ChatColor color;
|
2020-12-25 19:46:43 +00:00
|
|
|
|
2020-06-30 07:25:38 +00:00
|
|
|
private final org.bukkit.ChatColor teamColor;
|
2020-12-25 19:46:43 +00:00
|
|
|
|
2020-05-29 10:14:21 +00:00
|
|
|
private final boolean hasTeam;
|
2020-10-02 09:27:06 +00:00
|
|
|
private final boolean hasDefaultLoginMessage;
|
2015-10-19 17:43:46 +00:00
|
|
|
|
2020-10-25 16:27:56 +00:00
|
|
|
Title(String article, String name, ChatColor color, org.bukkit.ChatColor teamColor, String tag, Boolean hasTeam, Boolean hasDefaultLoginMessage)
|
2015-10-19 17:43:46 +00:00
|
|
|
{
|
2020-10-25 16:27:56 +00:00
|
|
|
this.article = article;
|
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;
|
2020-06-30 07:25:38 +00:00
|
|
|
this.teamColor = teamColor;
|
2020-05-29 10:14:21 +00:00
|
|
|
this.hasTeam = hasTeam;
|
2020-10-02 09:27:06 +00:00
|
|
|
this.hasDefaultLoginMessage = hasDefaultLoginMessage;
|
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
|
|
|
}
|
|
|
|
|
2020-05-29 10:14:21 +00:00
|
|
|
@Override
|
|
|
|
public boolean hasTeam()
|
|
|
|
{
|
|
|
|
return hasTeam;
|
|
|
|
}
|
|
|
|
|
2020-10-02 09:27:06 +00:00
|
|
|
@Override
|
|
|
|
public boolean hasDefaultLoginMessage()
|
|
|
|
{
|
|
|
|
return hasDefaultLoginMessage;
|
|
|
|
}
|
|
|
|
|
2015-10-19 17:43:46 +00:00
|
|
|
@Override
|
|
|
|
public String getColoredLoginMessage()
|
|
|
|
{
|
2020-10-25 16:27:56 +00:00
|
|
|
return article + " " + color + name;
|
2015-10-19 17:43:46 +00:00
|
|
|
}
|
2020-12-25 19:46:43 +00:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getArticle()
|
|
|
|
{
|
|
|
|
return article;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getName()
|
|
|
|
{
|
|
|
|
return name;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getAbbr()
|
|
|
|
{
|
|
|
|
return abbr;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getTag()
|
|
|
|
{
|
|
|
|
return tag;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getColoredTag()
|
|
|
|
{
|
|
|
|
return coloredTag;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public ChatColor getColor()
|
|
|
|
{
|
|
|
|
return color;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public org.bukkit.ChatColor getTeamColor()
|
|
|
|
{
|
|
|
|
return teamColor;
|
|
|
|
}
|
2020-08-15 16:35:48 +00:00
|
|
|
}
|