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:
parent
066415e752
commit
b97eaf175e
@ -117,7 +117,7 @@ public class FCommandHelp extends FBaseCommand {
|
|||||||
pageLines = new ArrayList<String>();
|
pageLines = new ArrayList<String>();
|
||||||
pageLines.add("Only faction members can build and destroy in their own");
|
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("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("");
|
||||||
pageLines.add("Make sure to put pressure plates in front of doors for your");
|
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");
|
pageLines.add("guest visitors. Otherwise they can't get through. You can");
|
||||||
|
@ -91,7 +91,7 @@ public class FactionsPlayerListener extends PlayerListener{
|
|||||||
// Why? Because the relations will differ.
|
// Why? Because the relations will differ.
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
|
|
||||||
for (Player listeningPlayer : Factions.instance.getServer().getOnlinePlayers()) {
|
for (Player listeningPlayer : event.getRecipients()) {
|
||||||
FPlayer you = FPlayer.get(listeningPlayer);
|
FPlayer you = FPlayer.get(listeningPlayer);
|
||||||
String yourFormat = formatStart + me.getChatTag(you).trim() + formatEnd;
|
String yourFormat = formatStart + me.getChatTag(you).trim() + formatEnd;
|
||||||
listeningPlayer.sendMessage(String.format(yourFormat, talkingPlayer.getDisplayName(), msg));
|
listeningPlayer.sendMessage(String.format(yourFormat, talkingPlayer.getDisplayName(), msg));
|
||||||
|
Loading…
Reference in New Issue
Block a user