mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 14:38:48 +00:00
implement player ignore api
This commit is contained in:
1 parent
ad2b7be13d
commit
bf9e4e8148
3 files changed
+43
No files matched your search
@@ -346,4 +346,22 @@ public interface CarbonPlayer extends Audience, Identified {
|
||||
*/
|
||||
boolean awareOf(final CarbonPlayer other);
|
||||
|
||||
/**
|
||||
* If this player is ignoring and hiding the messages of the sender.
|
||||
*
|
||||
* @param sender the player that may or may not be ignored
|
||||
* @return if this player is ignoring the sender
|
||||
* @since 2.0.0
|
||||
*/
|
||||
boolean ignoring(CarbonPlayer sender);
|
||||
|
||||
/**
|
||||
* Ignores/unignores the player.
|
||||
*
|
||||
* @param player the player to ignore/unignore
|
||||
* @param nowIgnoring if the player will be ignored
|
||||
* @since 2.0.0
|
||||
*/
|
||||
void ignoring(CarbonPlayer player, boolean nowIgnoring);
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user