MuteManager

interface MuteManager

Manages voice players mutes.

Functions

Link copied to clipboard
abstract fun getMute(@NotNull playerId: @NotNull UUID): Optional<ServerMuteInfo>
Gets the mute information for a player.
Link copied to clipboard
@NotNull
abstract fun getMuteStorage(): @NotNull MuteStorage
Gets the mute storage implementation used for storing mute information.
Link copied to clipboard
abstract fun mute(@NotNull playerId: @NotNull UUID, @Nullable mutedById: UUID, duration: Long, @Nullable durationUnit: MuteDurationUnit, @Nullable reason: String, silent: Boolean): Optional<ServerMuteInfo>
Mutes a player.
Link copied to clipboard
abstract fun setMuteStorage(@NotNull muteStorage: @NotNull MuteStorage)
Sets the mute storage implementation to be used for storing mute information.
Link copied to clipboard
abstract fun unmute(@NotNull playerId: @NotNull UUID, silent: Boolean): Optional<ServerMuteInfo>
Unmutes a player.