Make admin ranks appear in chat before developer rank

This commit is contained in:
Business Goose 2022-03-28 20:47:23 +01:00
parent 96f8a17126
commit 96f625cd6b
No known key found for this signature in database
GPG key ID: 77DCA801362E9645

View file

@ -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