跳到正文

pv-addon-voice-messages

作者:Apehum

Server-side Plasmo Voice addon that adds voice messages.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Addon icon

pv-addon-voice-messages

Server-side Plasmo Voice addon that adds voice messages.

Addon showcase

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 <player> — 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).

# 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")
}

See api-example for basic usage.

常见问题

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 的其他作品

查看全部 →