From 1f02d9a5a09f00cfb9f7e412164c6df6ce796dfd Mon Sep 17 00:00:00 2001 From: nossr50 Date: Thu, 29 Oct 2020 14:13:39 -0700 Subject: [PATCH] online leaders will be gold --- src/main/java/com/gmail/nossr50/datatypes/party/Party.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/datatypes/party/Party.java b/src/main/java/com/gmail/nossr50/datatypes/party/Party.java index c0c1d2f87..0b557312b 100644 --- a/src/main/java/com/gmail/nossr50/datatypes/party/Party.java +++ b/src/main/java/com/gmail/nossr50/datatypes/party/Party.java @@ -347,7 +347,8 @@ public class Party { OfflinePlayer offlinePlayer = Bukkit.getOfflinePlayer(playerUUID); if(offlinePlayer.isOnline() && player.canSee((Player) offlinePlayer)) { - coloredNames.add(ChatColor.GREEN + offlinePlayer.getName()); + ChatColor onlineColor = leader.getUniqueId() == playerUUID ? ChatColor.GOLD : ChatColor.GREEN; + coloredNames.add(onlineColor + offlinePlayer.getName()); } else { coloredNames.add(ChatColor.DARK_GRAY + members.get(playerUUID)); }