mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 14:38:48 +00:00
Ignore and Unignore commands
Adds API for ignored players
This commit is contained in:
1 parent
20e384522e
commit
ad2b7be13d
6 files changed
+189
-2
No files matched your search
@@ -230,6 +230,24 @@ public interface CarbonPlayer extends Audience, Identified {
|
||||
final @Nullable String reason
|
||||
);
|
||||
|
||||
/**
|
||||
* Checks if the sender is being ignored by this player.
|
||||
*
|
||||
* @param sender the potential source of a message
|
||||
* @return if this player is ignoring the sender
|
||||
* @since 2.0.0
|
||||
*/
|
||||
boolean ignoring(final CarbonPlayer sender);
|
||||
|
||||
/**
|
||||
* Adds the player to and removes the player from the ignore list.
|
||||
*
|
||||
* @param player the player to be added/removed
|
||||
* @param nowIgnoring if the player should be ignored
|
||||
* @since 2.0.0
|
||||
*/
|
||||
void ignoring(final CarbonPlayer player, boolean nowIgnoring);
|
||||
|
||||
/**
|
||||
* Returns if the player is deafened and unable to read messages.
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user