Add owner to standard prefixes. Resolves #504

This commit is contained in:
Jerom van der Sar 2015-04-27 00:45:19 +02:00
parent ea404985fd
commit 9ff6325469

View file

@ -855,18 +855,24 @@ public class TFM_PlayerListener implements Listener
name = ChatColor.DARK_PURPLE + name;
TFM_PlayerData.getPlayerData(player).setTag("&8[&5Developer&8]");
}
else if (TFM_AdminList.isSeniorAdmin(player))
{
name = ChatColor.LIGHT_PURPLE + name;
TFM_PlayerData.getPlayerData(player).setTag("&8[&dSenior Admin&8]");
}
else if (TFM_AdminList.isTelnetAdmin(player, true))
{
name = ChatColor.DARK_GREEN + name;
TFM_PlayerData.getPlayerData(player).setTag("&8[&2Telnet Admin&8]");
}
else if (TFM_AdminList.isSuperAdmin(player))
{
if (TFM_AdminList.isTelnetAdmin(player, true))
{
name = ChatColor.DARK_GREEN + name;
TFM_PlayerData.getPlayerData(player).setTag("&8[&2Telnet Admin&8]");
}
else if (TFM_AdminList.isSeniorAdmin(player))
{
name = ChatColor.LIGHT_PURPLE + name;
TFM_PlayerData.getPlayerData(player).setTag("&8[&dSenior Admin&8]");
}
else if (TFM_ConfigEntry.SERVER_OWNERS.getList().contains(name))
{
name = ChatColor.BLUE + name;
TFM_PlayerData.getPlayerData(player).setTag("&8[&9Owner&8]");
}
name = ChatColor.AQUA + name;
TFM_PlayerData.getPlayerData(player).setTag("&8[&BSuper Admin&8]");
}