diff --git a/src/com/massivecraft/factions/integration/herochat/FactionsChannelAbstract.java b/src/com/massivecraft/factions/integration/herochat/FactionsChannelAbstract.java index 7354f7aa..2c9449bf 100644 --- a/src/com/massivecraft/factions/integration/herochat/FactionsChannelAbstract.java +++ b/src/com/massivecraft/factions/integration/herochat/FactionsChannelAbstract.java @@ -1,6 +1,5 @@ package com.massivecraft.factions.integration.herochat; -import java.util.Arrays; import java.util.Collections; import java.util.HashSet; import java.util.Iterator; @@ -252,7 +251,9 @@ public abstract class FactionsChannelAbstract implements Channel String format = this.applyFormat(event.getFormat(), event.getBukkitFormat(), player); Chatter sender = Herochat.getChatterManager().getChatter(player); - Set recipients = new HashSet(Arrays.asList(Bukkit.getOnlinePlayers())); + + // NOTE: This line is not standard deobfuscation. It's altered to achieve the recipient limitations. + Set recipients = this.getRecipients(player); this.trimRecipients(recipients, sender); String msg = String.format(format, new Object[] { player.getDisplayName(), event.getMessage() });