Описание

Plasmo Voice
|
Modrinth
|
GitHub
|
Discord
|
Patreon
# pv-addon-voice-messages
Server-side [Plasmo Voice](https://modrinth.com/mod/plasmo-voice) addon that adds voice messages.

## Commands
- `/vm` — Record and send a voice message to all players (same as `/vm default`)
- `/vm default` — Record and send a voice message to all players
- `/vm direct ` — Record and send a voice message to a specific player
## Permissions
- `pv.addon.voice_messages.play` — Play voice messages (default true)
- `pv.addon.voice_messages.record.default` — Record and send global voice messages (default true)
- `pv.addon.voice_messages.record.direct` — Record and send direct voice messages (default true)
- `pv.addon.voice_messages.record.*` — Record and send voice messages in any context (default OP)
## Configuration
The configuration file is located at `plugins/pv-addon-voicemessages/config.toml` (`/config/pv-addon-voicemessages/config.toml` for Fabric/Forge/NeoForge).
```toml
# Activation to use for recording
activation = "proximity"
# Maximum duration of voice message
max_duration_seconds = 60
# How long recorded voice messages will be stored
expire_after_minutes = 10
# Whether actionbar text should be shown when recording a voice message
actionbar_when_recording = true
# Source line weight controls sorting order in "Volume"
# Higher weights are placed at the bottom of the list
source_line_weight = 100
# Available storage types: [MEMORY, REDIS]
storage_type = "MEMORY"
[chat_format]
default = ""
direct_incoming = ""
direct_outgoing = ""
# Redis configuration (required if storageType is REDIS)
#[redis]
#host = "localhost"
#port = 6379
#user = ""
#password = ""
```
## API
```kotlin
repositories {
mavenCentral()
}
dependencies {
compileOnly("dev.apehum.voicemessages:api:1.0.0-beta.1")
}
```
See [api-example](https://github.com/apehum/pv-addon-voice-messages/tree/main/api-example) for basic usage.