Ignore and Unignore commands

Adds API for ignored players
This commit is contained in:
Draycia authored and Josua Parks committed 2021-11-30 12:04:56 -08:00
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.
*