From 0fd91fd75af54790c0ee2f56a4abb6e37df1cf12 Mon Sep 17 00:00:00 2001 From: rooooose-b <142353909+rooooose-b@users.noreply.github.com> Date: Sun, 7 Apr 2024 07:38:52 +0200 Subject: [PATCH] fix: changed getRecipients to get all online players --- .../palmergames/bukkit/TownyChat/channels/StandardChannel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/palmergames/bukkit/TownyChat/channels/StandardChannel.java b/src/com/palmergames/bukkit/TownyChat/channels/StandardChannel.java index 5e5cf0f..ce573bc 100644 --- a/src/com/palmergames/bukkit/TownyChat/channels/StandardChannel.java +++ b/src/com/palmergames/bukkit/TownyChat/channels/StandardChannel.java @@ -70,7 +70,7 @@ public class StandardChannel extends Channel { String format = getFormat(player); // Get the list of message recipients. - Set recipients = getRecipients(player, town, nation, channelType, event.getRecipients()); + Set recipients = getRecipients(player, town, nation, channelType, new HashSet<>(Bukkit.getOnlinePlayers())); // Try sending an alone message if it is called for. trySendingAloneMessage(player, recipients);