Mutes, Deafens, And Spying (1/2)

2/2 will be commands
This commit is contained in:
Draycia committed 2021-07-02 19:33:51 -07:00
1 parent b5622aa58f
commit e9844c473c
20 files changed
+496 -250

No files matched your search

@@ -109,4 +109,49 @@ public interface CarbonPlayer extends Audience, Identified {
*/
List<String> groups();
/**
* Returns if the player is muted and unable to speak in chat.
*
* @return if the player is muted
* @since 2.0.0
*/
boolean muted();
/**
* Mutes and unmutes the player.
*
* @since 2.0.0
*/
void muted(final boolean muted);
/**
* Returns if the player is deafened and unable to read messages.
*
* @return if the player is deafened
* @since 2.0.0
*/
boolean deafened();
/**
* Deafens and undeafens the player.
*
* @since 2.0.0
*/
void deafened(final boolean deafened);
/**
* Returns if the player is spying on messages and able to read muted/private messages.
*
* @return if the player is spying on messages
* @since 2.0.0
*/
boolean spying();
/**
* Sets and unsets the player's ability to spy.
*
* @since 2.0.0
*/
void spying(final boolean spying);
}