Minor update to account for changes in Towny.

This commit is contained in:
ElgarL committed 2012-04-23 23:52:08 +01:00
1 parent 436520a183
commit 121f49d8fe
1 file changed
+4 -3
@@ -22,6 +22,7 @@ import com.palmergames.bukkit.towny.object.Nation;
import com.palmergames.bukkit.towny.object.Resident;
import com.palmergames.bukkit.towny.object.Town;
import com.palmergames.bukkit.towny.object.TownyUniverse;
import com.palmergames.bukkit.util.BukkitTools;
import com.palmergames.bukkit.util.ChatTools;
public class StandardChannel extends Channel {
@@ -79,17 +80,17 @@ public class StandardChannel extends Channel {
case DEFAULT:
Format = ChatSettings.getRelevantFormatGroup(player).getDEFAULT();
recipients = new HashSet<Player>(findRecipients(player, new ArrayList<Player>(Arrays.asList(TownyUniverse.getOnlinePlayers()))));
recipients = new HashSet<Player>(findRecipients(player, new ArrayList<Player>(Arrays.asList(BukkitTools.getOnlinePlayers()))));
break;
case GLOBAL:
Format = ChatSettings.getRelevantFormatGroup(player).getGLOBAL();
recipients = new HashSet<Player>(findRecipients(player, new ArrayList<Player>(Arrays.asList(TownyUniverse.getOnlinePlayers()))));
recipients = new HashSet<Player>(findRecipients(player, new ArrayList<Player>(Arrays.asList(BukkitTools.getOnlinePlayers()))));
break;
case PRIVATE:
Format = ChatSettings.getRelevantFormatGroup(player).getGLOBAL();
recipients = new HashSet<Player>(findRecipients(player, new ArrayList<Player>(Arrays.asList(TownyUniverse.getOnlinePlayers()))));
recipients = new HashSet<Player>(findRecipients(player, new ArrayList<Player>(Arrays.asList(BukkitTools.getOnlinePlayers()))));
break;
}