mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2024-12-23 08:25:12 +00:00
Make admin ranks appear in chat before developer rank
This commit is contained in:
parent
96f8a17126
commit
96f625cd6b
1 changed files with 9 additions and 6 deletions
|
@ -837,12 +837,7 @@ public class PlayerListener implements Listener {
|
||||||
|
|
||||||
//TODO: Cleanup
|
//TODO: Cleanup
|
||||||
String name = player.getName();
|
String name = player.getName();
|
||||||
if (Utilities.DEVELOPERS.contains(player.getName()))
|
if (AdminList.isSuperAdmin(player))
|
||||||
{
|
|
||||||
name = ChatColor.DARK_PURPLE + name;
|
|
||||||
PlayerData.getPlayerData(player).setTag("&8[&5Developer&8]");
|
|
||||||
}
|
|
||||||
else if (AdminList.isSuperAdmin(player))
|
|
||||||
{
|
{
|
||||||
if (ConfigurationEntry.SERVER_OWNERS.getList().contains(name))
|
if (ConfigurationEntry.SERVER_OWNERS.getList().contains(name))
|
||||||
{
|
{
|
||||||
|
@ -864,6 +859,14 @@ public class PlayerListener implements Listener {
|
||||||
name = ChatColor.AQUA + name;
|
name = ChatColor.AQUA + name;
|
||||||
PlayerData.getPlayerData(player).setTag("&8[&BSuper Admin&8]");
|
PlayerData.getPlayerData(player).setTag("&8[&BSuper Admin&8]");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Utilities.DEVELOPERS.contains(player.getName())) {
|
||||||
|
PlayerData.getPlayerData(player).setTag("&8[&5Developer&8] " + PlayerData.getPlayerData(player).getTag());
|
||||||
|
}
|
||||||
|
} else if (Utilities.DEVELOPERS.contains(player.getName()))
|
||||||
|
{
|
||||||
|
name = ChatColor.DARK_PURPLE + name;
|
||||||
|
PlayerData.getPlayerData(player).setTag("&8[&5Developer&8]");
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
|
|
Loading…
Reference in a new issue