fix: changed getRecipients to get all online players

This commit is contained in:
rooooose-b committed 2024-04-07 07:38:52 +02:00
1 parent 7eee55cb3f
commit 0fd91fd75a
1 file changed
+1 -1
@@ -70,7 +70,7 @@ public class StandardChannel extends Channel {
String format = getFormat(player);
// Get the list of message recipients.
Set<Player> recipients = getRecipients(player, town, nation, channelType, event.getRecipients());
Set<Player> recipients = getRecipients(player, town, nation, channelType, new HashSet<>(Bukkit.getOnlinePlayers()));
// Try sending an alone message if it is called for.
trySendingAloneMessage(player, recipients);