When adding relational colored faction tags to chat, Factions now pays better attention to whether the recipient list has been altered by another plugin

This commit is contained in:
Brettflan 2011-07-24 17:38:58 -05:00
parent 066415e752
commit b97eaf175e
2 changed files with 2 additions and 2 deletions

View File

@ -117,7 +117,7 @@ public class FCommandHelp extends FBaseCommand {
pageLines = new ArrayList<String>();
pageLines.add("Only faction members can build and destroy in their own");
pageLines.add("territory. Usage of the following items is also restricted:");
pageLines.add("Door, Chest, Furnace and Dispenser.");
pageLines.add("Door, Chest, Furnace, Dispenser, Diode.");
pageLines.add("");
pageLines.add("Make sure to put pressure plates in front of doors for your");
pageLines.add("guest visitors. Otherwise they can't get through. You can");

View File

@ -91,7 +91,7 @@ public class FactionsPlayerListener extends PlayerListener{
// Why? Because the relations will differ.
event.setCancelled(true);
for (Player listeningPlayer : Factions.instance.getServer().getOnlinePlayers()) {
for (Player listeningPlayer : event.getRecipients()) {
FPlayer you = FPlayer.get(listeningPlayer);
String yourFormat = formatStart + me.getChatTag(you).trim() + formatEnd;
listeningPlayer.sendMessage(String.format(yourFormat, talkingPlayer.getDisplayName(), msg));