Sync chat messages and various information on Telegram and Minecraft

Overview

Paper <-> Telegram bridge plugin

这个插件支持在Telegram和Minecraft同步聊天消息和各种信息。

如何使用:

  1. releases 下载jar文件,然后把它放到服务器的 plugins/ 文件夹 或者 clone 这个 repo 并运行 gradle

  2. 如果你有 telegram bot, 跳过这一步。 否则请使用 BotFather 创建一个bot。根据指示创建bot并保存好 token注意: 为了让你的bot能接收普通消息而不只是命令,你要关闭 privacy mode 。请去 Bot Settings -> Group Privacy ,点击 Turn Off.

  3. 下一步,你需要把这个bot给插件使用。 你可以选择一种方法:

    • 启动服务器,让配置文件自动生成,然后关闭服务器,进入下一步
    • 复制 config.yml 到服务器的 plugins/SpigotTGBridge/ 目录内。
  4. 把bot的 token 放进 config.yml 如下:

    botToken: abcdefghijklmnopq123123123
    # 别的配置...
  5. 启动Paper服务器.

  6. 把bot添加到群聊。在群里使用 /chat_id 命令。bot会回复给你一个 chat id 。打开 config.yml 并把这个ID放到 chats 部分,如下:

    botToken: abcdefghijklmnopq123123123
    chats:
      - -123456789
      - 987654321
      # 别的ID...
  7. 你可以继续修改 config.yml 如果不小心删除了什么,请看 这里

  8. 重启服务器或者在服务器后台使用 tgbridge_reload

插件配置:

名称 描述 类型
enable 插件是否启用 boolean
botToken Bot token (How to create bot) string
chats Bot要把消息发到哪里 number[] or string[]
serverStartMessage 服务器启动时发送什么 string
serverStopMessage 服务器停止时发送什么 string
logJoinLeave 玩家进出服务器时发消息 boolean
logFromMCtoTG 从Minecraft转发消息到Telegram boolean
logFromTGtoMC 从Telegram转发消息到Minecraft boolean
logPlayerDeath 发送玩家死亡消息 boolean
logPlayerAdvancement 发送玩家获取的进度 bollean
logPlayerAsleep 发送玩家睡觉信息 boolean
strings 一些字符串 Map
commands bot使用的命令 Map

Telegram bot 命令:

自定义命令。

命令 描述
/online 获取在线玩家列表
/time 获取服务器的 时间
/chat_id 获取当前Chat ID

插件命令:

命令 描述
tgbridge_reload 重新加载插件配置文件。只可以从服务器后台调用。
You might also like...
[Android Library] Get easy access to device information super fast, real quick
[Android Library] Get easy access to device information super fast, real quick

DeviceInfo-Sample Simple, single class wrapper to get device information from an android device. This library provides an easy way to access all the d

This library is a set of simple wrapper classes that are aimed to help you easily access android device information.
This library is a set of simple wrapper classes that are aimed to help you easily access android device information.

SysInfo Simple, single class wrapper to get device information from an android device. This library provides an easy way to access all the device info

REST countries sample app that loads information from REST countries API V3 to show an approach to using some of the best practices in Android Development.
REST countries sample app that loads information from REST countries API V3 to show an approach to using some of the best practices in Android Development.

MAJORITY assignment solution in Kotlin via MVVM Repository Pattern. REST countries sample app that loads information from REST countries API V3 to sho

Theia - A Kotlin program used to analyze and discover backdoors in Minecraft Java 1.12.2 forge mods

Theia A Kotlin program used to analyse and discover backdoors in Minecraft Java

⚙️ Extended gameplay mechanics and brand-new code foundations for Minecraft: Java Edition platforms

⚙️ foundation Extended gameplay mechanics and brand-new code foundations for Minecraft: Java Edition platforms. 🎏 Getting Started You can find inform

Simple (and useless) Minecraft plugin

CDS Minecraft plugin Simple plugin for Minecraft, without any useful feature 🖥 Installation 🧾 Requirements maven 3.0+ java 8+ spigot server 1.19+ 🔧

Minecraft 1.18.2 Backport of Petal, a performance-oriented fork of Purpur intended to increase performance for entity-heavy servers by implementing multi-threaded and asynchronous improvements.

Sakura Performance Minecraft JAR Sakura is a performance-oriented fork of Purpur intended to increase performance for entity-heavy servers by implemen

Minecraft NBT support for kotlinx.serialization

knbt An implementation of Minecraft's NBT format for kotlinx.serialization. Technical information about NBT can be found here. Using the same version

Gradle plugin adding a task to run a Paper Minecraft server

Run Paper Run Paper is a Gradle plugin which adds a task to automatically download and run a Paper Minecraft server along with your plugin built by Gr

Releases(v1.2)
Owner
雪沢 坊洛
雪沢 坊洛
Server-Side chat emotes for Minecraft

Chat Emotes Chat Emotes is a server-side mod that utilizes the Chat Preview feature introduced in Minecraft 1.19 to provide the use of emotes like Emo

Colin Barndt 7 Oct 25, 2022
Adds emoji support to the Minecraft chat.

WeirdChat ?? WeirdChat is a FabricMC mod that adds Emoji support to the Minecraft chat. Instead of completely rewriting the text renderer, Discord emo

Sarah 2 Oct 30, 2022
A minecraft modification based on Fabric with Yarn Mappings, developed for the newest version of the sandbox game Minecraft.

JupiterClient A minecraft modification based on Fabric with Yarn Mappings, developed for the newest version of the sandbox game Minecraft. Building th

Cedric H. 1 Jun 27, 2022
Sync Kotlin files with an Xcode project

Kotlin Xcode Sync Note Soon to be deprecated. You can add folder references instead. See here. Import kotlin files into an Xcode project. This is used

null 25 May 20, 2022
Various experimental proposals and extensions to Javalin 4.x used in Reposilite 3.x

Javalin RFCs Various experimental extensions to Javalin 4.x used in Reposilite 3.x. Provides basic support for Kotlin coroutines and async routes with

Reposilite Playground 5 Feb 22, 2022
Android app to test various cryptography algorithm.

This android app shows how cryptographic algorithm works. You can encrypt or decrypt messages and try different algorithms. Powered by Bouncy Castle this app supports AES, Serpent, Blowfish and many more :)

null 3 Mar 21, 2022
Kotlin MPP bindings for various clis

kommander Kotlin MPP bindings for various cli tools. The libraries only wrap around the clis and still require them to be natively available on the PA

Martynas Petuška 3 Mar 18, 2022
With Viola android face detection library, you can detect faces in a bitmap, crop faces using predefined algorithm and get additional information from the detected faces.

Viola Viola android face detection library detects faces automatically from a bitmap, crop faces using the predefined algorithms, and provides supplem

Darwin Francis 58 Nov 1, 2022
RickAndMortyApp - Rick and morty, app about characters information

Rick And Morty App ???? Aplicativo com tema do Rick and Morty, interatividade co

Alex Gimenes 3 Mar 12, 2022
A nice weather that helps you get all information including: current weather, hourly weather and also forecasts for 16 days

WeatherForecast This is an ongoing project where I fetch all the weather data using Retrofit and Kotlin Coroutines over two APIs containing both curre

null 2 Jul 26, 2022