this is quite literally the most awful thing i have ever done

This commit is contained in:
Telesphoreo 2023-08-31 20:20:18 -05:00
parent 5929fd9ddc
commit 28c57f3a52
2 changed files with 28 additions and 0 deletions

View File

@ -56,6 +56,11 @@ public class PlayerMeta
{
return NamedTextColor.DARK_PURPLE;
}
String group = VaultHook.getPermission().getPrimaryGroup(null, plexPlayer.getPlayer());
if (Plex.get().getConfig().isSet("colors." + group))
{
return NamedTextColor.namedColor(Plex.get().getConfig().getInt("colors." + group));
}
return NamedTextColor.WHITE;
}
}

View File

@ -24,6 +24,29 @@ chat:
# Color tag for name color
name-color: '<white>'
# You can define colors for each group which will appear in the tab list
# BLACK = 0x000000
# DARK_BLUE = 0x0000aa
# DARK_GREEN = 0x00aa00
# DARK_AQUA = 0x00aaaa
# DARK_RED = 0xaa0000
# DARK_PURPLE = 0xaa00aa
# GOLD = 0xffaa00
# GRAY = 0xaaaaaa
# DARK_GRAY = 0x555555
# BLUE = 0x5555ff
# GREEN = 0x55ff55
# AQUA = 0x55ffff
# RED = 0xff5555
# LIGHT_PURPLE = 0xff55ff
# YELLOW = 0xffff55
# WHITE = 0xffffff
colors:
admin: 0x00aa00
senior: 0xffaa00
executive: 0x5555ff
masterbuilder: 0x55ffff
# Login Messages
loginmessages:
# Should the player be required to put their name in the login message?