Color party leader names only once

This commit is contained in:
TfT_02 2013-10-12 20:50:42 +02:00
parent 77617ebee2
commit 2d78c0738d

View File

@ -27,7 +27,7 @@ public class PartyChatManager extends ChatManager {
@Override @Override
protected void sendMessage() { protected void sendMessage() {
if (Config.getInstance().getPartyChatColorLeaderName() && senderName.equalsIgnoreCase(party.getLeader())) { 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()) { for (Player member : party.getOnlineMembers()) {