跳到正文

pv-addon-voice-messages

作者:Apehum

Plasmo Voice 服务端附属模组,新增语音消息功能。

收藏

介绍

介绍由机器翻译自 Modrinth 原页面,仅供参考。

Addon icon

pv-addon-voice-messages

服务端 Plasmo Voice附属模组,添加了语音消息功能。

Addon showcase

命令

  • /vm — 录制并向所有玩家发送语音消息(与 /vm default 相同)
  • /vm default — 录制并向所有玩家发送语音消息
  • /vm direct <player> — 录制并向指定玩家发送语音消息

权限

  • pv.addon.voice_messages.play — 播放语音消息(默认启用)
  • pv.addon.voice_messages.record.default — 录制并发送全局语音消息(默认启用)
  • pv.addon.voice_messages.record.direct — 录制并发送私聊语音消息(默认启用)
  • pv.addon.voice_messages.record.* — 在任何上下文中录制并发送语音消息(默认仅 OP 可用)

配置

配置文件位于 plugins/pv-addon-voicemessages/config.toml(Fabric/Forge/NeoForge 对应 /config/pv-addon-voicemessages/config.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 = "<lang:chat.type.text:'<player_name>':'<voice_message>'>"
direct_incoming = "<italic><gray><lang:commands.message.display.incoming:'<source_player_name>':'<voice_message>'>"
direct_outgoing = "<italic><gray><lang:commands.message.display.outgoing:'<target_player_name>':'<voice_message>'>"

# Redis configuration (required if storageType is REDIS)
#[redis]
#host = "localhost"
#port = 6379
#user = ""
#password = ""

API

repositories {
    mavenCentral()
}

dependencies {
    compileOnly("dev.apehum.voicemessages:api:1.0.0-beta.1")
}

基本用法请参阅 api-example。

常见问题

pv-addon-voice-messages 支持哪些 Minecraft 版本?

pv-addon-voice-messages 支持 Minecraft Java 版 1.16.5–26.3,共 30 个版本,可用的加载器:Fabric / Folia / Forge / NeoForge / Paper / Purpur / Spigot。下载时注意选择和你游戏版本一致的文件。

pv-addon-voice-messages 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Folia / Forge / NeoForge / Paper / Purpur / Spigot,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分

Apehum 的其他作品

查看全部 →