mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 14:38:49 +00:00
Add player-toggled optional chat filter (#587)
This commit is contained in:
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);
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user