mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 22:16:22 +00:00
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:
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();
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user