Voice Messages

模组

· 作者 DimasKama

Minecraft 聊天中的语音消息

0 本站下载 0 关注 更新于 2 周前

最新 paper-1.0.14 · 26.3 · Bukkit / Folia

一键开服(送7天)

语音消息

为 Minecraft 添加语音消息功能的模组和插件。

需要安装 Simple Voice Chat。

预览动图

须知

本模组必须在服务器端和客户端同时安装才能正常工作。如果玩家未安装此模组,他们将无法看到语音消息。

本模组使用 Simple Voice Chat 中配置的麦克风及其所有设置。请确保在 Simple Voice Chat 设置中,“声音放大”(Voice Amplification)未设置为“-100%”。

此外,如果禁用了语音聊天音效,你将无法听到语音消息。

私密语音消息

你可以使用 /voicemsg <目标> 或 /vmsg <目标> 命令向玩家或你的团队发送私密语音消息。

请注意,服务器可能通过权限限制你发送这些消息。

命令预览 gif

在服务器上设置

配置文件

服务器配置文件位于 config/voicemessages_server.json

以下是带有描述的默认值:

{
  "max_voice_message_duration_ms": 90000,  // 语音消息的最大长度(毫秒),取值范围为 [3_000;300_000]
  "voice_message_spam_punishment": "none", // 发送语音消息的时间间隔短于上一次发送时的惩罚措施。可选值:"none"、"prevent"、"kick"
  "voice_message_invalid_punishment": "prevent", // 发送无效语音消息(超过配置的最大长度)或无权发送语音消息时的惩罚措施。可选值:"none"、"prevent"、"kick"
  "mod_required": false,                         // 如果为 true,未安装此模组的玩家将被踢出服务器
  "mod_not_installed_text": "VoiceMessages is not installed or is of an old version" // 未安装此模组时踢出玩家的提示信息
}

权限

  • voicemessages.send - 发送语音消息的权限。默认值:true
  • voicemessages.send.all - 向全局聊天发送语音消息的权限。默认值:true
  • voicemessages.send.team - 向玩家所在队伍发送私密语音消息的权限。默认值:true
  • voicemessages.send.players - 向其他玩家发送私密语音消息的权限。默认值:true

API

本模组拥有自己的 API。

在 build.gradle 中设置:

repositories {
    // 其他仓库
    
    maven {
        name "dimaskama"
        url "https://maven.dimaskama.net/releases"
    }
}

dependencies {
    // 其他依赖项

    // Voice Messages API
    compileOnly "ru.dimaskama.voicemessages:voicemessages-api:${voicemessages_api_version}"
}

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源