From 2d78c0738d799fd19c8ad5d5fe9b228b5a0a81ef Mon Sep 17 00:00:00 2001 From: TfT_02 Date: Sat, 12 Oct 2013 20:50:42 +0200 Subject: [PATCH] Color party leader names only once --- src/main/java/com/gmail/nossr50/chat/PartyChatManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/chat/PartyChatManager.java b/src/main/java/com/gmail/nossr50/chat/PartyChatManager.java index 94e2cdfb5..1b2b24bd1 100644 --- a/src/main/java/com/gmail/nossr50/chat/PartyChatManager.java +++ b/src/main/java/com/gmail/nossr50/chat/PartyChatManager.java @@ -27,7 +27,7 @@ public class PartyChatManager extends ChatManager { @Override protected void sendMessage() { if (Config.getInstance().getPartyChatColorLeaderName() && senderName.equalsIgnoreCase(party.getLeader())) { - message = message.replaceAll(displayName, ChatColor.GOLD + displayName + ChatColor.RESET); + message = message.replaceFirst(displayName, ChatColor.GOLD + displayName + ChatColor.RESET); } for (Player member : party.getOnlineMembers()) {