VoicePlayerManager

Base interface for managing voice players.

Functions

Link copied to clipboard
open fun getPlayerById(@NotNull playerId: @NotNull UUID): Optional<P>
abstract fun getPlayerById(@NotNull playerId: @NotNull UUID, useServerInstance: Boolean): Optional<P>
Gets a voice player by their unique identifier.
Link copied to clipboard
@NotNull
abstract fun getPlayerByInstance(@NotNull instance: @NotNull Any): @NotNull P
Gets a voice player by their server-specific instance.
Link copied to clipboard
open fun getPlayerByName(@NotNull playerName: @NotNull String): Optional<P>
abstract fun getPlayerByName(@NotNull playerName: @NotNull String, useServerInstance: Boolean): Optional<P>
Gets a voice player by their name.
Link copied to clipboard
abstract fun getPlayers(): Collection<P>
Gets a collection of all voice players.
Link copied to clipboard
Gets a collection of synchronized permissions.
Link copied to clipboard
abstract fun registerPermission(@NotNull permission: @NotNull String)
Registers a permission that will be synchronized with the client API.
Link copied to clipboard
abstract fun unregisterPermission(@NotNull permission: @NotNull String)
Unregisters a synchronized permission.