public class MuteCache
extends java.lang.Object
| Constructor and Description |
|---|
MuteCache() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addMutedPlayer(java.lang.String uuid)
Used to add a muted player
|
boolean |
addMutedPlayer(java.util.UUID uuid)
Used to add a muted player
|
java.util.List<java.lang.String> |
getMutedPlayers()
Used to fetch all of the muted playres
|
java.util.Date |
getTempMuteRemovalDate(java.lang.String uuid)
Used to get the date at which the temporary mute will be removed
|
java.util.Date |
getTempMuteRemovalDate(java.util.UUID uuid)
Used to get the date at which the temporary mute will be removed
|
boolean |
isMuted(java.lang.String uuid)
Used to tell if a player is muted or not
|
boolean |
isMuted(java.util.UUID uuid)
Used to tell if a player is muted or not
|
boolean |
isTempMuted(java.lang.String uuid)
Used to determine if a particular UUID is temp muted
|
boolean |
isTempMuted(java.util.UUID uuid)
Used to determine if a particular UUID is temp muted
|
void |
tempMute(java.lang.String uuid,
java.util.Date unMuteDate)
Used to temporarily mute a player
|
void |
tempMute(java.util.UUID uuid,
java.util.Date unMuteDate)
Used to temporarily mute a player
|
void |
unMutePlayer(java.lang.String uuid)
Unmutes a player
|
void |
unMutePlayer(java.util.UUID uuid)
Unmutes a player
|
public boolean addMutedPlayer(java.lang.String uuid)
uuid - The uuid of the player that is to be mutedpublic boolean addMutedPlayer(java.util.UUID uuid)
uuid - The uuid of the player that is to be mutedpublic boolean isMuted(java.lang.String uuid)
uuid - The uuid of the muted playerpublic boolean isMuted(java.util.UUID uuid)
uuid - The uuid of the muted playerpublic java.util.List<java.lang.String> getMutedPlayers()
public void tempMute(java.lang.String uuid,
java.util.Date unMuteDate)
uuid - The uuid of the player to temporarily muteunMuteDate - The date that the player will be unmuted onpublic void tempMute(java.util.UUID uuid,
java.util.Date unMuteDate)
uuid - The uuid of the player to temporarily muteunMuteDate - The date that the player will be unmuted onpublic boolean isTempMuted(java.lang.String uuid)
uuid - public boolean isTempMuted(java.util.UUID uuid)
uuid - public java.util.Date getTempMuteRemovalDate(java.lang.String uuid)
uuid - The to check forpublic java.util.Date getTempMuteRemovalDate(java.util.UUID uuid)
uuid - The to check forpublic void unMutePlayer(java.lang.String uuid)
uuid - The uuid of the player to unmutepublic void unMutePlayer(java.util.UUID uuid)
uuid - The uuid of the player to unmute