2015-11-15 23:32:04 +00:00
|
|
|
package me.totalfreedom.totalfreedommod.rank;
|
2015-10-19 17:43:46 +00:00
|
|
|
|
|
|
|
import lombok.Getter;
|
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),
|
|
|
|
VERIFIED_STAFF("a", "Verified Staff Member", ChatColor.LIGHT_PURPLE, org.bukkit.ChatColor.LIGHT_PURPLE, "VS", false, true),
|
|
|
|
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-10-02 09:27:06 +00:00
|
|
|
@Getter
|
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;
|
2020-05-29 10:14:21 +00:00
|
|
|
@Getter
|
2020-06-30 07:25:38 +00:00
|
|
|
private final org.bukkit.ChatColor teamColor;
|
|
|
|
@Getter
|
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-02 09:27:06 +00:00
|
|
|
Title(String determiner, String name, ChatColor color, org.bukkit.ChatColor teamColor, String tag, Boolean hasTeam, Boolean hasDefaultLoginMessage)
|
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;
|
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-07-09 22:18:29 +00:00
|
|
|
return determiner + " " + color + name;
|
2015-10-19 17:43:46 +00:00
|
|
|
}
|
2020-08-15 16:35:48 +00:00
|
|
|
}
|