online leaders will be gold

This commit is contained in:
nossr50 2020-10-29 14:13:39 -07:00
parent 4e8f49db5b
commit 1f02d9a5a0

View File

@ -347,7 +347,8 @@ public class Party {
OfflinePlayer offlinePlayer = Bukkit.getOfflinePlayer(playerUUID); OfflinePlayer offlinePlayer = Bukkit.getOfflinePlayer(playerUUID);
if(offlinePlayer.isOnline() && player.canSee((Player) offlinePlayer)) { 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 { } else {
coloredNames.add(ChatColor.DARK_GRAY + members.get(playerUUID)); coloredNames.add(ChatColor.DARK_GRAY + members.get(playerUUID));
} }