Login messages

Last commit from me. Don't have the power but to me Packs is the new Lead Developer
This commit is contained in:
Seth
2020-10-25 09:27:56 -07:00
parent 2ecfd9610f
commit 6e84fdad23
6 changed files with 27 additions and 14 deletions

View File

@ -19,7 +19,7 @@ public enum Rank implements Displayable
@Getter
private final String abbr;
@Getter
private final String determiner;
private final String article;
@Getter
private final String tag;
@Getter
@ -33,12 +33,12 @@ public enum Rank implements Displayable
@Getter
private final boolean hasDefaultLoginMessage;
Rank(String determiner, String name, Type type, String abbr, ChatColor color, org.bukkit.ChatColor teamColor, Boolean hasTeam, Boolean hasDefaultLoginMessage)
Rank(String article, String name, Type type, String abbr, ChatColor color, org.bukkit.ChatColor teamColor, Boolean hasTeam, Boolean hasDefaultLoginMessage)
{
this.type = type;
this.name = name;
this.abbr = abbr;
this.determiner = determiner;
this.article = article;
this.tag = abbr.isEmpty() ? "" : "[" + abbr + "]";
this.coloredTag = abbr.isEmpty() ? "" : ChatColor.DARK_GRAY + "[" + color + abbr + ChatColor.DARK_GRAY + "]" + color;
this.color = color;
@ -56,7 +56,7 @@ public enum Rank implements Displayable
@Override
public String getColoredLoginMessage()
{
return determiner + " " + color + name;
return article + " " + color + name;
}
@Override