Add player-toggled optional chat filter (#587)

This commit is contained in:
Josua Parks authored and GitHub committed 2025-01-08 20:58:55 -08:00
1 parent 2ddb01132b
commit 620bd57c46
18 files changed
+253 -7

No files matched your search

@@ -413,4 +413,20 @@ public interface CarbonPlayer extends Audience, Identified {
*/
CompletableFuture<@Nullable Party> party();
/**
* Whether the optional chat filters apply to messages send to this player or not.
*
* @return if this player's using the optional chat filters
* @since 3.0.0
*/
boolean applyOptionalChatFilters();
/**
* Whether the optional chat filters apply to messages send to this player or not.
*
* @param applyOptionalChatFilters if this player's using the optional chat filters
* @since 3.0.0
*/
void applyOptionalChatFilters(boolean applyOptionalChatFilters);
}