MuteStorage

interface MuteStorage

Stores voice mutes.

Functions

Link copied to clipboard
open fun close()
Invoked when the server is stopping.
Link copied to clipboard
abstract fun getMuteByPlayerId(@NotNull playerId: @NotNull UUID): Optional<ServerMuteInfo>
Gets the player's mute information from storage by their UUID.
Link copied to clipboard
Gets a collection of all muted players.
Link copied to clipboard
open fun init()
Invoked when the server is starting.
Link copied to clipboard
abstract fun putPlayerMute(@NotNull playerId: @NotNull UUID, @NotNull muteInfo: @NotNull ServerMuteInfo)
Puts the player's mute information into the storage.
Link copied to clipboard
abstract fun removeMuteByPlayerId(@NotNull playerId: @NotNull UUID): Optional<ServerMuteInfo>
Removes the player's mute information from storage by their UUID.