mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-02 14:38:57 +00:00
Minor update to account for changes in Towny.
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user