mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-06-29 19:46:42 +00:00
Myadmin tags and misc improvements
This commit is contained in:
@ -114,6 +114,10 @@ public class RankManager extends FreedomService
|
||||
|
||||
public void updateDisplay(Player player)
|
||||
{
|
||||
if (!player.isOnline())
|
||||
{
|
||||
return;
|
||||
}
|
||||
FPlayer fPlayer = plugin.pl.getPlayer(player);
|
||||
if (plugin.al.isAdmin(player))
|
||||
{
|
||||
@ -190,6 +194,15 @@ public class RankManager extends FreedomService
|
||||
FUtil.bcastMsg(ChatColor.AQUA + player.getName() + " is " + loginMsg);
|
||||
plugin.pl.getPlayer(player).setTag(display.getColoredTag());
|
||||
|
||||
if (isAdmin)
|
||||
{
|
||||
Admin admin = plugin.al.getAdmin(player);
|
||||
if (admin.getTag() != null)
|
||||
{
|
||||
plugin.pl.getPlayer(player).setTag(FUtil.colorize(admin.getTag()));
|
||||
}
|
||||
}
|
||||
|
||||
String displayName = display.getColor() + player.getName();
|
||||
try
|
||||
{
|
||||
|
Reference in New Issue
Block a user