Allow disabling cross-server broadcasting per-channel (#589)

* Add channel config option to individually disable cross-server

* Block incoming messages when channel cross-server is false
This commit is contained in:
Josua Parks authored and GitHub committed 2025-01-13 02:54:29 -08:00
1 parent 1ed9f4441e
commit 9380c13817
7 files changed
+39

No files matched your search

@@ -132,4 +132,12 @@ public interface ChatChannel extends Keyed, ChatComponentRenderer {
*/
long startCooldown(CarbonPlayer player);
/**
* Whether messages from this channel should be broadcast and sent to other servers.
*
* @return if this channel's messages should be sent cross-server
* @since 3.0.0
*/
boolean shouldCrossServer();
}