getPlayerByInstance

@NotNull
abstract fun getPlayerByInstance(@NotNull instance: @NotNull Any): @NotNull P

Gets a voice player by their server-specific instance.

The instance parameter represents the server-specific player instance:

  • For Bukkit: [org.bukkit.entity.Player]
  • For modded servers (Fabric/Forge): [net.minecraft.server.level.ServerPlayer]

Return

The voice player.

Parameters

instance

The server-specific player instance.