From 96f625cd6b0f10dc0fb13238d3f7d0e00d0af778 Mon Sep 17 00:00:00 2001 From: Business Goose Date: Mon, 28 Mar 2022 20:47:23 +0100 Subject: [PATCH] Make admin ranks appear in chat before developer rank --- .../TotalFreedomMod/listener/PlayerListener.java | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/main/java/me/StevenLawson/TotalFreedomMod/listener/PlayerListener.java b/src/main/java/me/StevenLawson/TotalFreedomMod/listener/PlayerListener.java index b945d26..39ef933 100644 --- a/src/main/java/me/StevenLawson/TotalFreedomMod/listener/PlayerListener.java +++ b/src/main/java/me/StevenLawson/TotalFreedomMod/listener/PlayerListener.java @@ -837,12 +837,7 @@ public class PlayerListener implements Listener { //TODO: Cleanup String name = player.getName(); - if (Utilities.DEVELOPERS.contains(player.getName())) - { - name = ChatColor.DARK_PURPLE + name; - PlayerData.getPlayerData(player).setTag("&8[&5Developer&8]"); - } - else if (AdminList.isSuperAdmin(player)) + if (AdminList.isSuperAdmin(player)) { if (ConfigurationEntry.SERVER_OWNERS.getList().contains(name)) { @@ -864,6 +859,14 @@ public class PlayerListener implements Listener { name = ChatColor.AQUA + name; 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