mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
online leaders will be gold
This commit is contained in:
parent
4e8f49db5b
commit
1f02d9a5a0
@ -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));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user