此插件在 Telegram 和 Minecraft 服务器之间搭建了一座桥梁,实现了从 Telegram 到 Minecraft 以及从 Minecraft 到 Telegram 的消息收发功能。
使用方法
- 安装插件并重启服务器,这将为你生成一个配置文件以进行后续操作
- 在 Telegram 上通过 @BotFather 创建一个机器人,并在机器人设置中禁用“群组隐私”模式
- 使用 @ScanIDBot 获取你的群聊 ID
- 现在你可以修改配置文件
plugins/TelegramBridge/config.yml,填入你的聊天 ID 和机器人令牌(token) - 重启服务器
权限说明
| 键值 | 描述 | 默认值 |
|---|---|---|
| telegrambridge.receive | 玩家是否接收来自 Telegram 的消息 | true |
| telegrambridge.send | 玩家的消息是否发送至 Telegram | true |
| telegrambridge.commands.reply | 是否有能力在 Minecraft 中回复来自 Telegram 的消息 | true |
| telegrambridge.commands.mention | 自动补全 Telegram 中的用户以便在 Minecraft 中提及他们的命令 | true |
| telegrambridge.commands.reload | 允许用户重新加载 TelegramBridge 的配置 | op |
配置说明
有关所有配置选项,请查看 CONFIG.md
翻译说明
有关所有翻译选项,请查看 TRANSLATION.md
Telegram 命令
/setthread- 在使用线程时,此命令将设定事件将被发送到的线程/unsetthread- 取消由/setthread设置的线程/setpin- 向聊天发送一条消息并将其置顶,该消息将动态显示在线玩家(机器人需具备置顶权限)/unsetpin- 取消由/setpin置顶的消息(机器人需具备置顶权限)/online- 在聊天中显示在线玩家/time- 显示服务器的时间和日期
Minecraft 命令
/tbreload- 重新加载 TelegramBridge 的配置文件/tbmention <user> <message>别名/tbm- 自动补全 Telegram 中的用户以便提及他们
This plugin adds a bridge between telegram and your minecraft sever making possible to send and receive messages from telegram to minecraft and vice versa.
Usage
- Install the plugin and restart your server this will create a config file for you to proceed
- Create a bot with @BotFather on telegram and disable “Group Privacy” on bot settings
- Get your chat id from your group with the @ScanIDBot
- Now you can change the configuration file
plugins/TelegramBridge/config.ymlto put your chat id and bot token - Restart your server
Permissions
| key | Description | Default |
|---|---|---|
| telegrambridge.receive | If player should receive message from telegram | true |
| telegrambridge.send | If message of the player should be sent to telegram | true |
| telegrambridge.commands.reply | Ability to reply to messages from telegram on minecraft | true |
| telegrambridge.commands.mention | Command that make auto complete on users from telegram to mention them | true |
| telegrambridge.commands.reload | Allows the user to reload the TelegramBridge configuration | op |
Config
To all the configuration options check CONFIG.md
Translation
To all the translation options check TRANSLATION.md
Telegram Commands
/setthread- When using threads, this command will set witch thread the events will be sent to/unsetthread- Unset the thread that was set by/setthread/setpin- Send a message to the chat and pin it which will show dynamically the online players (bot needs to have pin permission)/unsetpin- Unpin the message that was pinned by/setpin(bot needs to have pin permission)/online- Show the online players on the chat/time- Show the server time and date
Minecraft Commands
/tbreload- Reload the TelegramBridge configuration file/tbmention <user> <message>alias/tbm- Auto complete on users from telegram to mention them
下载 Telegram Bridge
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Telegram Bridge
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Telegram Bridge
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Telegram Bridge
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Telegram Bridge
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Telegram Bridge
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Telegram Bridge
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Telegram Bridge
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Telegram Bridge
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Telegram Bridge
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
更新内容
- 服务器日志的启动与停止
- 修复置顶消息错误抑制问题
- 通过添加测试提升了插件的可靠性
完整更新日志:
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
自定义你的Minecraft头像!
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
评论 0
登录后参与评分
还没有评论,来抢沙发吧