MatrixSRV
一个在 Minecraft 和 Matrix 之间建立连接的简单桥接工具。由汗水、泪水以及 Trixnity 打造而成。
注意:MatrixSRV 不 支持加密房间。一旦启用加密,便无法禁用,你必须创建一个新房间。
为什么选择 MatrixSRV
此插件将你的 Minecraft 服务器聊天与 Matrix 房间连接起来,使消息能同时出现在两个地方。 玩家可以在 Minecraft 内部进行聊天,而其他参与者即使不在游戏中也能通过 Matrix 加入对话。 设置简单,有助于让你的社区在服务器之外保持联系。 MatrixSRV 还可选依赖 DiscordSRV,以尽可能无缝地在这两个平台间传递消息!
适用人群
此插件适合希望与社区保持联系的 Minecraft 服务器管理员、希望远程监控聊天的版主,以及希望在 Minecraft 离线时继续聊天的玩家。
功能!
- 监听玩家聊天消息
- 监听玩家死亡事件
- 监听玩家加入/离开服务器
- 监听玩家进度( advancements )
- 监听玩家的
/me命令 - 转发大多数标准 Matrix 消息(包括所有文件类型和 3 种文本格式)
- 可重载的配置,带有偏好设置
- Copyleft 自由开源软件项目
- 广播命令
- 可选兼容 DiscordSRV
- 还有更多!
编译
尽管 Modrinth 页面 是公开的,但仍强烈建议你自行编译该插件:
- 克隆 Git 仓库
git clone https://git.gay/Stigstille/MatrixSRV
- 进入项目文件夹
cd ./MatrixSRV
- 构建并编译插件
./gradlew shadowJar
- 找到新生成的插件
- 应位于
./build/libs/MatrixSRV-x.x.x-all.jar
- 应位于
命令
/matrixsrv:/matrixsrv source的简写/matrixsrv source:向玩家显示指向源代码的可点击 URL,以及许可证副本/matrixsrv broadcast <text>:将<text>的内容广播到 Matrix/matrixsrv reload:重新加载配置。(更改访问令牌或主服务器仍需要重启服务器)
配置
首次启动带有该插件的服务器后,即可找到配置文件。
# 你机器人的访问令牌 (Access token)。
# 不建议使用你自己账户的访问令牌
matrix-access-token: "CHANGEME_THISISNOT_AREALVALUE"
# 应进行桥接的房间 ID
# 随意添加/移除频道
# 第一个频道将是用于加入、离开、死亡等消息及预设回复的主要频道
matrix-channel-link:
global: '!somewhere:over.therain.bow'
#nether: '!somewhere:under.therain.bow'
# 你的主服务器 (Homeserver)。
# 如果你不知道这是什么,*可能*你不应该动它
matrix-homeserver: "https://matrix.org"
# 偏好设置
show-full-matrix-uname: false
forward-me-command: true
me-command-permission: "minecraft.command.me"
# MSCs (Matrix Spec Changes)。并非所有客户端都支持这些
## MSC4144: 单条消息的个人资料
support-msc-4144: true
## 仅在启用 MSC4144 时使用。
## 支持 PlaceholderAPI 和诸如 {username}、{uuid} 以及 {uuid-no-dashes} 之类的变量
avatar-url: "https://crafthead.net/helm/{username}"
# !matrixsrv 始终处于激活状态,并将显示指向源代码页面的链接
canned-responses:
'!ip': "play.example.com"
'!seed': "此世界的种子为 ..."
自 v0.1.0 起,
MatrixSRV 现在允许你更改以前硬编码的文本,并实际指定自定义进度的文本!
在 plugins/MatrixSRV/lang.json 中,只需粘贴来自数据包的 en_us.json(或其他语言文件)的内容,
然后重载 MatrixSRV 即可!内置了一些默认值,以便更轻松地控制内置
文本:
{
"matrixsrv.advancement": " 获得了进度 ",
"matrixsrv.discord_prefix": "[DSCRD] ",
"matrixsrv.join_game": " 加入了游戏",
"matrixsrv.left_game": " 离开了游戏",
"matrixsrv.matrix_prefix": "[MTRX] ",
"matrixsrv.message_seperator": " \u003e\u003e ",
"matrixsrv.minecraft_prefix": "[MNCRFT] ",
"matrixsrv.reply": " 对以下内容的回复 ",
"matrixsrv.sent_audio": " 发送了音频",
"matrixsrv.sent_file": " 发送了一个文件",
"matrixsrv.sent_image": " 发送了一张图片",
"matrixsrv.sent_video": " 发送了一个视频"
}
MatrixSRV
A simple bridge between Minecraft and Matrix. Made with blood, sweat, and Trixnity
NOTICE: MatrixSRV does NOT work in encrypted rooms. Once encryption is enabled it cannot be disabled, and you will have to make a new room
Why MatrixSRV
This plugin connects your Minecraft server chat to a Matrix room, so messages appear in both places at the same time. Players can chat from inside Minecraft while others can join the conversation from Matrix, even when they are not in-game. It’s easy to set up and helps keep your community connected outside the server. MatrixSRV also has an optional dependancy with DiscordSRV, to keep messaging with both platforms as seamless as possible!
Who is this for?
This plugin is for Minecraft server owners who want to stay in touch with their community, moderators who want to monitor chat remotely, and players who want to keep chatting when they are not online in Minecraft.
Features!
- Listens to player chat messages
- Listens to player deaths
- Listens to player join/leave
- Listens to player advancements
- Listens to player
/mecommands - Forwards most standard matrix messages (including all file types, and 3 text formats)
- RELOADABLE config, with preferences
- Copyleft FOSS project
- Broadcast command
- OPTIONAL compatability with DiscordSRV
- AND MORE!
Compilation
Although the Modrinth page is public, it is highly recommended that you compile the plugin on your own:
- Clone the git repository
git clone https://git.gay/Stigstille/MatrixSRV
- Enter the project files
cd ./MatrixSRV
- Build and Compile the plugin
./gradlew shadowJar
- Find the freshly generated plugin
- Should be located at
./build/libs/MatrixSRV-x.x.x-all.jar
- Should be located at
Commands
/matrixsrv: Shorthand for/matrixsrv source/matrixsrv source: Shows players a clickable URL to the source code, along with a copy of the license/matrixsrv broadcast <text>: Broadcasts a message to matrix with the content of<text>/matrixsrv reload: Reloads the configuration. (Server still needs a restart to change the Access Token or the Homeserver
Config
You can find the configuration file after starting the server with the plugin for the first time.
# Your Bot's Access token.
# It is not recommended to use the Access token for your own account
matrix-access-token: "CHANGEME_THISISNOT_AREALVALUE"
# The ID for the room that should be bridged
# add/remove channels however you like
# first channel will be main channel for join, leave, death, etc. messages and canned-responses
matrix-channel-link:
global: '!somewhere:over.therain.bow'
#nether: '!somewhere:under.therain.bow'
# Your homeserver.
# If you don't know what this is, you *probably* shouldn't touch this
matrix-homeserver: "https://matrix.org"
# Preferences
show-full-matrix-uname: false
forward-me-command: true
me-command-permission: "minecraft.command.me"
# MSCs (Matrix Spec Changes). Not all clients support these
## MSC4144: Per-message profiles
support-msc-4144: true
## Only gets used if MSC4144 is enabled.
## Supports placeholderapi and variables like {username}, {uuid}, and {uuid-no-dashes}
avatar-url: "https://crafthead.net/helm/{username}"
# !matrixsrv is always active and will show a link to the source page
canned-responses:
'!ip': "play.example.com"
'!seed': "The seed for this world is ..."
As of v0.1.0,
MatrixSRV now lets you change previously hardcoded text, and actually specify the text for custom advancements!
in plugins/MatrixSRV/lang.json, just paste the contents of en_us.json (or other language file) from your datapack,
and reload MatrixSRV! There are some default values that come built in for making it easier to control the built-in
text:
{
"matrixsrv.advancement": " has made the advancement ",
"matrixsrv.discord_prefix": "[DSCRD] ",
"matrixsrv.join_game": " joined the game",
"matrixsrv.left_game": " left the game",
"matrixsrv.matrix_prefix": "[MTRX] ",
"matrixsrv.message_seperator": " \u003e\u003e ",
"matrixsrv.minecraft_prefix": "[MNCRFT] ",
"matrixsrv.reply": " in response to ",
"matrixsrv.sent_audio": " sent audio",
"matrixsrv.sent_file": " sent a file",
"matrixsrv.sent_image": " sent an image",
"matrixsrv.sent_video": " sent a video"
}
下载 MatrixSRV
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 MatrixSRV
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 MatrixSRV
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 MatrixSRV
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 MatrixSRV
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 MatrixSRV
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 MatrixSRV
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 MatrixSRV
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 MatrixSRV
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 MatrixSRV
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
RANDOM BULLSHITT GO!!!!!(首次完整发布 lol)
- 好吧,我改进了代码库,还发现了 linting :skull:
- 现在有一个 lang.json 文件,你可以将资源包的语言文件放入其中以支持自定义进度等内容,也可以放置不同的原版语言翻译(它是 JSON 格式,因此你可以直接从游戏中复制粘贴内容)
- /matrixsrv 现在会显示来自版本控制的 git commit 信息!!
- 大量重构工作
- 其他一些我可能忘记提到的内容 :3
尽情享受吧!分享给你的朋友们!通过口口相传来支持开源软件!!!
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
自定义你的Minecraft头像!
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持

评论 0
登录后参与评分
还没有评论,来抢沙发吧